I personally use designer scripts to try to make sure that my layouts work on as many devices as possible, even though some might say not to do that.
If you search the forum and find my COVID-19 source code examples (B4A and B4i), you will see the designer script I use, the layout looks great on all my mobile devices, from older small phones to P4XL, I didn't check my tablets as I didn't design it for them either.
Oh yes, do not forget to use anchors too...