Use a standard viewport and let users zoom
Most responsive pages should declare width=device-width and initial-scale=1, then rely on flexible CSS. Avoid maximum-scale, minimum-scale, and user-scalable=no unless a thoroughly tested specialized interface requires them.
- Include one valid viewport meta element in the document head.
- Use responsive layout rules instead of a fixed desktop canvas.
- Do not disable pinch zoom for ordinary content pages.
- Test text, controls, and horizontal overflow at narrow widths and high zoom.
What the declaration changes
A common baseline is meta name=viewport content="width=device-width, initial-scale=1". It asks the layout viewport to follow the device width and starts at a normal scale, allowing CSS media queries and flexible components to behave as intended.
Duplicate declarations or malformed values can produce browser-dependent behavior. Keep the element in the head and generate it from one shared layout template.
<meta name="viewport" content="width=device-width, initial-scale=1">
Accessibility risks beyond the tag
- Zoom restriction Disabling scaling can prevent low-vision users from enlarging content.
- Fixed-width content Tables, media, or containers wider than the viewport cause horizontal scrolling or clipping.
- Small controls Responsive geometry still fails users when touch targets and spacing are inadequate.
- Orientation assumptions Content should remain usable in supported portrait and landscape layouts.
Test the layout, not only the metadata
Use real devices and browser emulation at representative widths. Increase text and page zoom, open menus and dialogs, focus form controls, and inspect whether sticky elements hide content.
Combine the report’s static viewport check with Lighthouse accessibility findings and manual keyboard, screen-reader, and touch testing for important flows.
Verify a usable responsive baseline
- 01Keep one width=device-width, initial-scale=1 declaration.
- 02Remove unnecessary zoom and orientation restrictions.
- 03Fix fixed-width containers, media, and overflowing tables.
- 04Test at narrow widths, 200% zoom, and both orientations.
- 05Retest critical forms, navigation, and dialogs on real devices.
Official references
The technical recommendations in this guide are aligned with these primary sources.