Pinned top bar on a phone

How the scan measures a fixed or sticky bar at the top of a phone screen, when it takes more than 15 or 22 percent, and how to shrink it.

What AuditX checks

The scan opens the page in a browser at phone size (390 by 844 pixels). The desktop view is not used for this check. It looks at visible elements whose position is fixed or sticky, that start at the top of the screen (within 4 pixels), are at least 8 pixels tall and at least half the screen wide, and are less than 60 percent of the screen tall. Taller layers are treated as pop-ups or cookie walls and judged elsewhere. The tallest one is the bar height, which is divided by the screen height. The check passes when nothing is pinned to the top, and passes when the bar takes 15 percent or less of the screen. It warns when the bar takes more than 15 percent, which is about 127 pixels on an 844 pixel screen. It fails when the bar takes more than 22 percent, which is about 186 pixels. If the height could not be measured, the result is an info note, which does not lower the score. The scan does not look at bars pinned to the bottom, at a bar that only appears after the visitor scrolls, or at the desktop view. A fail counts fully in the review score and a warn counts less. This check is not one of the checks that can cap the overall score.

Why it matters

Nielsen Norman Group advises keeping sticky headers small, because they take up screen space that could be used for content.

W3C WCAG 2.2 success criterion 2.4.11 (Focus Not Obscured, Minimum) addresses sticky bars that cover an element that has keyboard focus, which is a further reason to keep a pinned bar small.

How to fix it

  1. Reduce the padding and the logo size of the header on phones. A bar of about 56 to 64 pixels is usually enough.
  2. Move a second row, such as a promo strip or a language bar, into the menu or let it scroll away.
  3. If the header does not need to stay, remove position: sticky on small screens.
  4. Check the page on a real phone, with the cookie banner dismissed and the page scrolled a little.
@media (max-width: 600px) {
  .site-header { position: static; padding: 8px 16px; }
}

Does your site pass this check? A free scan runs it with every other check and shows the result in about a minute.

Scan my site

Sources

Related checks

Last reviewed 2026-11-13.