Cookie banner size on the first screen

How the scan measures how much of the first screen a cookie banner covers, the 25 and 40 percent limits, and how to make the banner slim.

What AuditX checks

The scan opens the page you scanned in a browser at desktop (1440 by 900 pixels) and phone (390 by 844 pixels) size, with no stored cookies, and looks at what is on the screen as the page loads. It does not click anything. It looks for elements with fixed or sticky position that cover at least 3 percent of the first screen, and reads up to 6 of them per view. An element is treated as a consent banner when its text, in the first 400 characters, mentions cookie, consent, gdpr, toestemming or akkoord (or the Persian or Arabic word for cookie), when its id or class names a consent or cookie banner, or when it mentions privacy or tracking next to an accept, agree, allow, reject or decline button, or when it comes from a known consent tool such as OneTrust, Cookiebot, Usercentrics, Didomi or Sourcepoint, whose dialog sits in a frame without readable text. The coverage is the share of the first screen that the element covers. The scan takes the banner with the largest coverage in either view. The check fails when that banner covers more than 40 percent of the first screen, or when it sits over the middle point of the screen, or when the page cannot be scrolled behind it (overflow-y hidden or clip on the body or html element) and it covers at least 15 percent. When the banner layer fills at least 90 percent of the screen but is see-through, the usual dimmed backdrop behind a consent dialog, the report says the banner opens as a dialog over the dimmed page instead of giving a coverage figure; it still fails, because nothing behind it can be used until the visitor chooses. It warns when it covers more than 25 percent. Otherwise it passes. It also passes when no banner was found. If neither view could be measured, the result is an info note, which does not lower the score. A banner that is not fixed or sticky, for example one placed in the normal page flow, is not found. The scan does not judge what the banner says, which choices it offers or whether it asks in the right way.

Why it matters

Google Search Central advises avoiding intrusive interstitials and dialogs, because they obstruct content and frustrate users. It advises against interstitials that cover the whole page and recommends banners that take up a small part of the screen. It exempts interstitials that are required by law, and its own wording is about interstitials in general, not cookie banners. This check applies the same layout advice to cookie banners as a usability point.

Nielsen Norman Group found that most overlays appear at the wrong time and interrupt people during their task. A banner that fills the screen on a phone hides your headline and your main button.

How to fix it

  1. Make the banner a slim bar at the bottom or top of the screen, with the text on one or two lines and the buttons next to it.
  2. Do not lock the page scroll while the banner is open. Remove any overflow-y: hidden rule that the banner adds to the body or html element.
  3. Check the result on a phone, with a private window so the banner appears again, and make sure your headline and main button stay visible.
  4. Ask your consent tool provider for a compact or banner layout if the default one is a large box.

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.