How to stop iPhone zooming in on input fields
iPhones zoom in on a form field when its text is smaller than 16px. Set the text size of your fields to at least 16px and the zoom stops.
When you tap a form field on an iPhone and the whole page suddenly zooms in, the cause is almost always the text size inside the field. Safari on iPhone zooms in automatically when a field is tapped and its text is smaller than 16px. Setting the text in your form fields to 16px or larger stops it, and the fix usually takes a few minutes.
What people see
A visitor taps the email box in your contact form. The page jumps closer, the layout slides sideways, and part of the form disappears off the edge of the screen. After typing, the page often stays zoomed in, so the visitor has to pinch to zoom back out and find the Send button. Some people give up before they get that far.
This happens in Safari and also in Chrome, Firefox and other browsers on iPhone, because they all use Apple's browser engine. It is mainly an iPhone problem. Most Android phones do not do this.
Why it matters
- Enquiries and sales: contact, booking, login and checkout forms are where visitors become customers. A form that lurches around feels broken, and people leave.
- Trust: a jumpy page looks careless, especially on a payment or login form.
- Search: Google looks at the mobile version of your site, and a form that is hard to use on a phone loses visitors whatever the effect on rankings.
How to check if your site has it
You do not need special tools. You need an iPhone, or a friend or colleague who has one.
- Open your site in Safari on the iPhone.
- Tap every kind of field: name, email, phone, message, search box, dropdown menus, and the checkout or booking form.
- Note which fields make the page zoom. Check forms in the footer and pop-ups too, as these are often styled separately.
A desktop browser's phone preview mode does not reliably reproduce the zoom, so do not trust it to say everything is fine. It is useful for one thing: reading the text size. Right-click a field, choose Inspect, open the Computed tab and look at font-size. If it shows less than 16px, that field will zoom on an iPhone.
The size can be hidden behind other units. Some themes set the page text to 62.5%, which makes 1.4rem equal to 14px. Always check the computed value in pixels.
How to fix it in general
The fix is a small piece of CSS that sets the field text to 16px:
input, select, textarea {
font-size: 16px;
}
If you prefer smaller text on desktop, limit the rule to phones and small tablets:
@media (max-width: 768px) {
input, select, textarea {
font-size: 16px;
}
}
Your theme may have a more specific rule that wins over yours. If your change has no effect, make your selector more specific (for example form input) or, as a last resort, add !important after the value.
One popular tip you should avoid: adding maximum-scale=1 or user-scalable=no to the viewport tag. It can stop the zoom, but it also stops people with poor eyesight from zooming in on purpose, which is an accessibility problem. Keep your viewport tag in its standard form:
<meta name="viewport" content="width=device-width, initial-scale=1">
Bigger text may make fields look a little cramped. If so, add some padding so they stay comfortable to tap. Our page on form fields that are too small on mobile covers sizing and spacing.
Fixing it on common platforms
Menu names change between versions and themes, so treat these as starting points.
| Platform | Where to look |
|---|---|
| WordPress | Appearance, Customize, Additional CSS (or the Site Editor's custom CSS in block themes) |
| Shopify | Theme editor, custom CSS setting, or the theme's main CSS file |
| Wix | Form element settings, text or font size for the field text |
| Squarespace | Custom CSS panel under the website design settings |
| Webflow | Style panel, Typography, on the form field element or class |
| Elementor | Form widget, Style tab, Fields, Typography |
| WooCommerce | Theme custom CSS, as checkout fields follow your theme's styles |
For step by step help, see our guides for WordPress and Shopify.
With form plugins and page builders, check whether the field size is set in the form's own settings before adding CSS. Fix it once at the source rather than field by field.
How to confirm the fix worked
- Clear your site's cache. If you use a caching plugin or a CDN, purge it, as visitors and your phone may still be served the old CSS.
- On the iPhone, open the page in a private tab so you are not looking at a saved copy.
- Tap every field again, including dropdowns and the search box. The page should stay put.
- Inspect the fields in a desktop browser and confirm the computed
font-sizeis 16px or more. - Ask someone with a different iPhone to try the main form. Different models and iOS versions can behave slightly differently.
How to stop it coming back
- Keep the rule in one place, such as your theme's custom CSS, so it survives edits to individual pages.
- Retest on an iPhone after a theme change, a redesign, a plugin update or whenever a new form is added.
- If a designer or developer works on your forms, ask for 16px as the minimum text size in fields.
- Use a regular mobile check. SiteMonday's mobile usability test in week 5 looks at how your site behaves on phones and puts problems into a ranked fix list. Fixing them is up to you or your developer.
It is a small detail, but forms are where your visitors decide whether to contact you or buy. Making them behave calmly on a phone is one of the cheapest improvements you can make.
Step by step for your platform
- Phone zooms in when tapping form fields on WordPress
- Phone zooms in when tapping form fields on Shopify
- Phone zooms in when tapping form fields on Wix
- Phone zooms in when tapping form fields on Squarespace
- Phone zooms in when tapping form fields on Webflow
- Phone zooms in when tapping form fields on Elementor
- Phone zooms in when tapping form fields on WooCommerce
Questions
Why does my iPhone zoom in when I tap a text box?
Safari on iPhone zooms in automatically when you focus a field whose text is smaller than 16px. It is meant to make small text easier to read, but it often breaks the page layout.
Will setting the font size to 16px make my form look too big?
Usually not, as 16px is a normal reading size on phones. If you want smaller text on desktop, put the 16px rule inside a media query for small screens.
Can I just disable zooming in the viewport tag?
You can, but you should not. Adding `maximum-scale=1` or `user-scalable=no` stops people with low vision from zooming in, so fixing the field text size is the better choice.
Does this happen on Android too?
Mostly no. The automatic zoom on small field text is an iPhone behaviour, though 16px text is a good size for fields on every device.
I changed the CSS but the page still zooms. Why?
Most often a cache is serving the old file, or another theme rule with higher priority is overriding yours. Purge your cache, test in a private tab, and check the computed `font-size` of the field.
Do dropdown menus and search boxes zoom too?
Yes. Any input, select or textarea with text under 16px can trigger the zoom, so include all of them in your CSS rule and test each one.