Mobile · Viewport

Viewport prevents zooming

This page's viewport tag sets user-scalable=no, which stops visitors pinching to zoom in. That fails accessibility rules for people with low vision.

How this page is built

The viewport tag on this page adds user-scalable=no to the normal value.

Why it matters

Many people zoom in to read small text or look at a picture in detail. Turning zoom off stops them, and it fails the Web Content Accessibility Guidelines rule on resizing text. Some browsers now ignore the setting, but others still obey it.

Sites usually turn zoom off to stop the page jumping when a form field gets focus, or to make a web app feel more like a native one. Both can be solved in other ways.

How to check it

View the source and read the viewport meta tag in the head. Lighthouse and the accessibility checker axe both test it, and crawl tools with mobile checks list pages whose viewport tag is missing or set wrongly. Then open the page on a phone, or in a browser’s device mode, to see the effect.

How to fix it

Remove user-scalable=no. If form fields zoom in on focus, give them a font size of at least 16 pixels instead.

Back to all tests