YLB ScoreAsk for yours

The page is wider than a phone screen (Mobile-friendly)

On a phone the page should fit the screen and scroll only downwards. When something is wider than the screen, the visitor has to scroll sideways to read each line, and most will not bother.

The cause is usually one thing: a wide table, a fixed-width picture or an embedded map.

Worth
about 1 pointof your 100, for a typical business
Time
about 1 hour
Who
your web person

Why it matters

Visitors lose their place in every line, and the page can look broken. This matters most for the people your website exists to serve: those searching from their phone, close to buying.

Once somebody knows to look, the culprit is quick to find: a wide table, an embedded video or map, or a banner built for a desktop screen. It can also be a sign that the phone-screen setting is missing, in which case the phone shows a shrunken desktop page. That is worth checking first.

Mistakes we see

See for yourself

Open your homepage on your phone and try to drag it sideways. It should not move.

How to fix it

  1. Find the element that sticks out and let it shrink to the width of the screen.
  2. Check the inner pages as well as the homepage.

Questions people ask

Is a wide table always a fault?

A real data table that needs its columns may scroll by itself in its own box. The page around it should still fit.

Will changing the theme fix this?

Often. A modern theme is built to fit any screen. An old one may need a developer to look at the element that sticks out.

For the curious: how it works

WCAG 2.1 success criterion 1.4.10, Reflow (Level AA), requires that content can be presented without loss of information or functionality, and without scrolling in two dimensions, at a width equivalent to 320 CSS pixels (that is, a 1280 pixel window zoomed to 400%). It exempts content that needs two-dimensional layout to be usable, such as data tables, maps, diagrams and images. The criterion is as much about people with low vision who zoom in as about phones.

Our check loads the homepage in a real browser at 375 CSS pixels, the width of a common phone, and compares document.documentElement.scrollWidth with clientWidth. A difference of more than one pixel fails. We use 375 rather than the 320 in the WCAG text, so a page can pass here and still fail at 320. We do not identify the element that overflows.

This is one of the checks in a YLB Score report. Every report is free, read by a person before it goes out, and written so that you can act on it without us. Ask for yours.

Got a question about this? Ask us.