Stop the layout shifts behind Search Console's CLS issue

CLS issue: more than 0.1 is Search Console's Core Web Vitals report telling you that content on a group of similar pages jumps around while people use them: over the last 28 days, more than a quarter of visits had a layout shift score above 0.1. The (mobile) or (desktop) at the end says which device. The usual causes are images, ads and embeds that load without reserved space, content inserted above what's already on screen and web fonts that swap in at a different size.

What each part of the CLS issue means

  • CLS

    Cumulative Layout Shift: a score for how much visible content moves without the visitor asking it to. Zero means nothing moved, and a bigger number means more movement.

  • More than 0.1

    The group's CLS is above 0.1 but no more than 0.25, which the report labels Need improvement. Above 0.25 the group is Poor, and the issue reads more than 0.25 instead.

  • Mobile or desktop

    Search Console keeps a separate report for each device. A phone layout stacks and wraps content differently, so a shift can happen on one device and not the other.

  • Group CLS

    The number on the issue's page. 75% of visits to pages in the group had this score or less over the last 28 days.

The thresholds and the 28-day window come from Google's Core Web Vitals report help and its CLS guide.

How the layout shift score adds up

  • Each shift scores how much of the viewport the moving content covers, multiplied by how far it moved relative to the viewport. Shifts less than a second apart join one burst, up to five seconds long, and CLS is the score of the worst burst in the visit, not the total of every shift. Google's CLS guide explains the math.

  • Shifts within half a second of a click, tap or key press don't count, because the visitor caused them, but scrolling doesn't excuse a shift. CLS also covers the whole time the page stays open, while lab tests only see shifts during load, as Google's lab and field guide notes. A page that's steady while it loads can still fail.

What causes layout shift and how to stop it

CauseWhat to change
Images and video without dimensionsSet width and height on the element, or a CSS aspect-ratio, so the browser reserves the space before the file arrives.
Ads, embeds and iframesReserve the slot with min-height or aspect-ratio, and keep the space even when no ad fills it.
Banners and content added aboveReserve space for a banner in advance or lay it over the content. Load new content when a visitor asks for it, such as with a Load more button, rather than pushing what's on screen down.
Web fontsUse font-display: optional, or match the fallback font's size with size-adjust, so text doesn't reflow when the font arrives.
AnimationsAnimate with transform rather than top, left or other properties that change layout. Google's CLS guide covers each of these causes.

How to fix the CLS issue in Search Console

  1. Open the issue for the device it namesPick the CLS issue in the report for the device it names and click an example URL. The pages Search Console shows for that group are sorted by impressions, so shifts on the ones at the top weigh most in the group's status.
  2. Use the page the way visitors doOpen the top page at the width of the device the issue names, then scroll, open menus and wait for ads, embeds and banners to appear. Shifts after the page loads count toward CLS.
  3. Find what movedRecord in the Chrome DevTools Performance panel. The Layout shifts track marks each shift and the elements that moved, and the Layout shift culprits insight suggests likely causes.
  4. Reserve the space in the templateFix the shared layout the group uses rather than one page, using the changes in the table above, then record again to confirm the shifts are gone.
  5. Start validation after you deploySelect Start Tracking on the issue's page. The issue counts as fixed only if no URL shows it during the next 28 days.

Frequently asked questions

Why does Lighthouse show a low CLS while Search Console flags it?

Lighthouse only sees shifts while the page loads, in the first screen. Search Console uses CLS from Chrome users' visits for as long as each page stayed open, including shifts after scrolling or waiting. Google's CLS guide says a gap between the two is likely caused by shifts after load.

Do layout shifts after a click count toward CLS?

Not if they happen within 500 milliseconds of a click, tap or key press, since the visitor expected the page to change. A shift that comes later than that, such as content that loads slowly after the click, still counts. Google's CLS guide explains which input is excluded.

How long does the CLS issue take to clear?

Search Console's numbers cover the last 28 days of visits, so shifts recorded before your fix keep counting until they're older than that. Start Tracking only restarts a 28-day check; it doesn't make Google look again sooner. Google's report help describes validation.