Accessibility · Visual

Orientation locked

This page's CSS turns a panel sideways when the screen is in portrait, so it can only be read with the device held in landscape.

How this page is built

A small style rule in the head of this page rotates the panel below by 90 degrees in portrait orientation.

Turn your phone sideways to read this panel.

Why it matters

Some people mount their phone or tablet in a fixed position, for example on a wheelchair. WCAG 1.3.4 asks that content works in both portrait and landscape unless one orientation is essential. Forcing a rotation with CSS locks them out.

Accessibility problems matter for search too. Search engines read the same code that screen readers read. Many crawl tools now run accessibility checks next to their SEO checks. A page that works for everyone is easier to use, and people stay on it for longer.

How to check it

Run an automated checker such as axe DevTools, Lighthouse or WAVE, or a crawler with accessibility checks, on this page. axe reports this under the rule css-orientation-lock.

How to fix it

Remove the orientation-specific rotation and design the layout to work in both orientations.

Back to all tests