Skip to content
Frontsiter

iPhone zooms in on form fields: the popular fix breaks zoom on Android

iPhone zooms in when form text is under 16px. Most answers add maximum-scale=1, which blocks zoom on Android. Test it on your phone and fix it with 16px text.

By · Published · 3 min read

The problem

On an iPhone, you tap a form field and the whole page zooms in. Part of the page moves off the screen, and the page often stays zoomed in after the keyboard closes, so visitors have to pinch it back.

Safari does this when the text in the field is smaller than 16px. Many designs use 14px fields, and form fields do not take the page's font size unless the CSS sets it.

Try it on your phone

Open this page on an iPhone and tap each field. Each field shows whether the page zoomed in. The switch shows the same fields with maximum-scale=1 in the viewport tag.

Page zoom: 1.00× (no zoom)

  • Expected: On iPhone the page zooms in.

    Your result: not tested yet.

  • Expected: No zoom. The label's size does not matter.

    Your result: not tested yet.

  • Expected: On iPhone the page zooms in. Safari checks the size as the field is tapped.

    Your result: not tested yet.

Why it happens

Safari zooms in so that the text you type is large enough to read. It checks the text size of the field at the moment you tap it:

  • Only the field's text counts. The label can be any size (field B).
  • A smaller size in :focus still zooms, even when the field is 16px before you tap it (field C).
  • Android does not zoom on form fields. Chrome and Firefox on Android leave the page as it is.

Why not maximum-scale=1?

The most common answer is to add maximum-scale=1 to the viewport tag. On iPhone it works, and pinch zoom still works too: since iOS 10, Safari ignores the setting for pinch zoom and uses it only to skip the zoom on form fields.

Chrome and Firefox on Android follow the setting as written, so people cannot zoom the page past 100%. People with low vision zoom in to read, so this fails WCAG 1.4.4 (Resize Text). Switch the test above to maximum-scale=1 and pinch the page on an Android phone to see it.

The fix

1. Give form fields 16px text. In your main stylesheet:

css
input,
select,
textarea {
  font-size: 1rem; /* 16px: iPhone does not zoom at 16px or more */
}

1rem is 16px when the site keeps the browser's default root font size. If your site changes the root size, write 16px.

2. Keep smaller fields on larger screens, if your design needs them. In Tailwind CSS, give the field text-base md:text-sm: 16px on phones, 14px from 768px wide.

3. Remove maximum-scale=1 and user-scalable=no from the viewport tag. The tag only needs:

html
<meta name="viewport" content="width=device-width, initial-scale=1">

Check that it is fixed

  • Developer tools: at phone width, select each field. The computed font-size is 16px or more. Check small variants too, such as Bootstrap's form-control-sm.
  • iPhone: tap each field. The page does not zoom in.
  • Android: pinch the page. It zooms past 100%.
  • Lighthouse: the accessibility audit flags a viewport tag that limits zoom.

The test above was run on a real iPhone and a real Android phone on 1 November 2026.

Questions or ideas?

Corrections and topic ideas are always welcome. Email hello@frontsiter.com.

Contact us