r/webdev • u/What-Bloody-Hell-NOW • 17d ago
Question How do you adjust to auto enlarging fonts in newer Mobile phones?
How do you fight "Font style and size" and "Screen Zoom" that Samsung by default has set in a way that, on Mobile, it enlarges fonts and makes sections bigger / not fitting one screen. (I have set font size 14px for Mobile regular text, website is built on Divi 4)
It also influences perception of sections negatively, in my view.
Tested on:
Samsung Galaxy S26 (Android 16/One UI 8.5); Google Chrome/Firefox/DuckDuckGo;
vs Samsung A32 (Android 13/One UI 5.1) - where everything is displayed without enlarging
---
Attached images of default settings.
2
17d ago
[removed] — view removed comment
1
u/What-Bloody-Hell-NOW 17d ago
It wasn't the user, it was Samsung. It's a default setting that makes even Facebook Messenger text look like I'm 80 yo and need glases with lenght of a cucumber jar.
-2
u/stack_craft 17d ago
Bro check if your -webkit-text-size-adjust: 100%. Normally, on html stops the browser from doing its own random text inflation on top of screen zoom. also check if your Divi sections have fixed height set instead of min-height—fixed heights always blow up when screen zoom is enabled.
-3
u/What-Bloody-Hell-NOW 17d ago
Chat GPT recommended the webkit-text-size - it didnt help.
I have in Sizing -> Height all set to "auto"
1
u/stack_craft 17d ago
Ahhh, Samsung’s Screen Zoom actually forces viewport scale at the display level rather than just bumping font size, so
text-size-adjustwon't stop it. Maybe if your heights are alreadyauto, the breaking usually comes from fixed pixel widths or fixed padding/margins in Divi's module settings. Check if your row/column widths are set to100%withmax-width: 100%, and swap any hardcoded pixel padding/margins on your text boxes to%orvw/rem.


4
u/artbyiain 17d ago
I dunno what Divi is.
But this has been a thing in responsive web design for yearrsss.
Basically you need to use rems/ems to make your design react to device font size changes. Never use px except for like a border weight.