Zoom disabled: correcting the viewport setting and allowing zoom
“Zooming and scaling must not be disabled” explained: why user-scalable=no and maximum-scale=1 hold people back and how to correct the viewport setting.
In short
The message “Zooming and scaling must not be disabled” (axe rule meta-viewport) means that the viewport setting in the page head prevents pinch zoom or limits it too much. axe reports user-scalable=no and maximum-scale values below 2. People with low vision then cannot enlarge text on their phone sufficiently. Usually a single line is enough: <meta name="viewport" content="width=device-width, initial-scale=1">.
What the rule checks
axe reads the content attribute of <meta name="viewport">. There is a failure if user-scalable=no is set or maximum-scale is less than 2, meaning zoom cannot reach at least 200 percent. The rule belongs to WCAG success criterion 1.4.4 “Resize Text” (Level AA), and Deque rates its impact as critical.
The additional best-practice rule meta-viewport-large recommends allowing zoom up to five times. MDN also describes 5× zoom as best practice. The simplest way to meet both is not to set maximum-scale and user-scalable at all.
Who a zoom lock shuts out
People with low vision, many older people and anyone who happens to be out without their glasses enlarge small text, prices or image details with two fingers. If that is blocked, the only option left is the operating system’s screen magnifier, which enlarges the whole screen and is much more awkward to use.
According to MDN, Safari on iOS 10 and later ignores the lock by default, and some browsers offer a setting in their accessibility options to force zoom. You cannot rely on that: other browsers, in-app browsers and web views inside apps still respect the setting, and the finding remains.
Why the lock was set in the first place
- Zoom in form fields: Safari on the iPhone zooms in when you tap an input field with a font size below 16 pixels. The solution is a font size of at least 16 pixels for input fields, not a zoom lock.
- Double-tap delay: mobile browsers used to wait briefly after a tap for a possible double tap. With width=device-width, modern browsers largely do without it; where needed, touch-action: manipulation helps.
- Shifting layouts: pages that move sideways usually have elements that are too wide. The cause is in the CSS and can be fixed there.
- Maps, games and image viewers: limit custom gestures to the element in question with touch-action instead of the whole page.
- Inherited templates: a theme, app shell or site builder brought the lock along without anyone choosing it deliberately.
Correcting the viewport setting
A typical faulty setting reads <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">. Replace it with <meta name="viewport" content="width=device-width, initial-scale=1">. Remove maximum-scale and user-scalable completely, because their default values allow zoom.
Make sure the final page head contains only one viewport setting; themes and plugins sometimes add a second one. To prevent automatic zoom in forms, add something like input, select, textarea { font-size: 1rem; } to your CSS, provided the base font size of your page is 16 pixels.
Where the setting lives in WordPress and other systems
Open the page source and search for “viewport”. In classic WordPress themes, the setting is usually in header.php; change it in a child theme. With block themes, WordPress itself outputs a zoom-friendly setting. A lock then more likely comes from a theme option, a page builder or a plugin for app or mobile views.
In Shopify themes, the tag usually sits in theme.liquid. In Next.js, the setting is generated via the viewport export; look for maximumScale or userScalable: false there. In other frameworks you will find it in the central HTML template.
Checking the layout after the fix
Once zoom works again, other weaknesses sometimes become visible: fixed headers that cover half the screen when enlarged, cut-off text or horizontal scrolling. So also check success criterion 1.4.10 “Reflow”: content should remain readable without horizontal scrolling at a width of 320 CSS pixels, which corresponds to 400 percent browser zoom at a window width of 1280 pixels. The article on mobile accessibility covers this in more detail.
Checking the fix
- Check the setting that is actually delivered in the developer tools, because scripts can change the page head afterwards.
- Run the website check again.
- On a real smartphone, pinch to zoom into an article, a form and the navigation.
- On a computer, test 200 and 400 percent browser zoom and look out for hidden or cut-off content.
Sources & review status
Here you’ll find the original sources for this article. Last checked on .
- W3C: Understanding Resize Text (1.4.4)
- W3C: Understanding Reflow (1.4.10)
- Deque: axe rule meta-viewport
- MDN: meta name="viewport"
Legal requirements depend on the country, the provider and the specific offer. This article explains the basics and practical steps. Test results apply to their documented scope and date.