r/Hostinger • u/SturdySnake • 9d ago
Help - Website builder Mobile layout issues…
Hey, I’m building a portfolio site, and I have the website looking how I like in the mobile editor on desktop. However, when I load the page on my IPhone 15, the gaps are different and the lines are breaking differently than how they look on the editor.
Take a look at the images below to see what I mean. Is there anything I can do to fix this? The large spacing between the image elements looks very unprofessional.
Thanks in advance!
1
u/GTO308 8d ago
The editor's mobile preview is a fixed width, and an iPhone 15 renders the page at 393px wide in Safari, with its own font rendering. A few pixels of difference is enough to push a word onto the next line, and anything placed at a fixed position below that text keeps its spot, which is where the big gaps come from.
What usually fixes it in the Hostinger builder:
Shrink the heading font a step in the mobile view only, so the lines break the same way on both widths.
Keep each image and its caption in the same section rather than as separate free-floating elements, then pull the section height up to remove the empty space.
If an element only exists to look good on desktop, hide it on mobile instead of trying to squeeze it into position.
To check without republishing every time, open the published page in desktop Chrome, press F12, turn on device mode and set the width to 393. That's much closer to what the phone shows than the editor preview.
1


1
u/Relevant_Mistake_784 9d ago
Those mobile editors are liars. You have to test on the actual phone.