Skip to content
FunnelGuard

Fix guide by FunnelsGuard

CLS over 0.1: how to find and fix layout shift on your site

SEO-254Medium impactDetectedBy FunnelGuardPublished Updated
On this page

What this issue is

Cumulative Layout Shift (CLS) is a Core Web Vitals metric. It scores how much visible elements move unexpectedly while the page loads or while someone uses it. The score is a number with no unit. Google treats 0.1 or lower as good, 0.1 to 0.25 as needs improvement, and above 0.25 as poor.

Why it costs you leads or sales

When a page jumps, people tap the wrong thing. A button moves just as a thumb lands, and the visitor opens the wrong link, closes the form or loses their place. On mobile, where screens are small, one late banner can push a whole call to action out of reach.

CLS is also part of Google's page experience signals, so a poor score can weaken your search visibility on pages where other factors are equal. The impact is usually medium: it rarely breaks a funnel outright, but it quietly lowers conversion on the pages that matter.

How a layout shift loses a click
  1. Page starts loadingText and button appear
  2. Visitor reaches for the buttonThumb is already moving
  3. Late banner or image loadsContent is pushed down
  4. Tap lands on the wrong elementWrong link or no action
  5. Form or checkout never startsLead or sale lost

The visitor aims at a button, content loads above it and the tap lands on the wrong element.

A moving element steals the tap

Content shifts at the last moment, so the visitor hits something else.

How to check if your site has it

Measure CLS on your key pages
  1. Run PageSpeed Insights

    Open pagespeed.web.dev, enter the URL of your home page, landing pages and checkout, and check the Cumulative Layout Shift figure. Look at both the field data (real users) and the lab data.

  2. Open Chrome DevTools

    Press F12, open the Performance panel, tick Screenshots, record a page load and look for red 'Layout Shift' markers in the Experience row. Click one to see which element moved.

  3. Check Search Console

    In Google Search Console open Core Web Vitals under Experience. Groups of URLs flagged 'CLS issue: more than 0.1' show which page types are affected.

  4. Test on a phone-sized screen

    In DevTools use the device toolbar to emulate a mobile device, and throttle the network to Fast 4G or Slow 4G. Shifts that are invisible on fast desktop connections often show up here.

  5. Test as a first-time visitor

    Use a private window so the cookie banner and any pop-ups appear, as they do for new visitors.

Common causes of layout shift and how to spot them
CauseWhat you seeTypical fix
Images or video without dimensionsText jumps down when the image loadsSet width and height, or aspect-ratio
Cookie or promo banner inserted at the topWhole page pushes downOverlay it with fixed position or reserve space
Ads, embeds and iframesBlank gap that suddenly fillsSet a min-height on the container
Web fonts swappingText reflows when the font loadsPreload the font, use size-adjust fallback
Content injected by scriptsWidgets, reviews or chat bars appear lateReserve a fixed-size slot

How to fix it

Start with the elements Chrome DevTools flagged. The rule is the same everywhere: tell the browser how much space an element needs before it loads.

Fix the usual causes of layout shift
  1. Give images and video dimensions

    Add width and height attributes that match the file's real proportions, then let CSS scale them with max-width: 100% and height: auto. The browser then reserves the right space.

  2. Reserve space for embeds, ads and widgets

    Wrap each in a container with a fixed min-height or an aspect-ratio so the slot exists before the content arrives.

  3. Stop banners pushing content

    Show cookie notices and promo bars as fixed or sticky overlays at the bottom, or reserve their height from the first paint.

  4. Tame font swapping

    Preload your main font, use font-display: swap or optional, and match the fallback font's metrics with size-adjust.

  5. Avoid inserting content above existing content

    If a script must add something, add it below the visible area or into a reserved slot, unless it responds to a user's tap.

  6. Animate with transform

    Animate with transform and opacity instead of top, left, height or margin, which cause layout shifts.

Image with reserved spacehtml
<img src="hero.jpg" width="1200" height="600" alt="Product hero" style="max-width:100%;height:auto;">
Reserve space for an embed and fix a bannercss
.video-embed {
  aspect-ratio: 16 / 9;
  width: 100%;
}
.ad-slot {
  min-height: 250px;
}
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
}
@font-face {
  font-family: "Brand";
  src: url("/fonts/brand.woff2") format("woff2");
  font-display: swap;
}
Where to make the change on your platform
  1. Check images

    Modern WordPress adds width and height to images inserted in the editor. Images in page builders, old posts or theme templates may lack them, so edit those templates.

  2. Review plugins

    Disable popups, banners and sliders one at a time on a staging copy to find which causes the shift. Set a fixed height for the slot in the plugin settings or custom CSS.

  3. Check caching and optimisation plugins

    If you use a performance plugin, make sure options such as lazy loading skip the first image on the page and that CSS is not delayed in a way that causes a flash of unstyled content.

Before and after fixing layout shift

CLS above 0.1

  • Images load with no reserved space
  • Cookie banner pushes content down
  • Embeds pop in and move buttons
  • Font swap reflows headings

CLS at or below 0.1

  • Images have width and height
  • Banner overlays at the bottom
  • Embed slots have a set aspect ratio
  • Fallback font matches the web font
CLS score by fixExample numbers
CLS score by fix (example)Before: 0.3 CLS score; Image sizes set: 0.2 CLS score; Banner overlays: 0.1 CLS score; Font fallback tuned: 0 CLS score0010.30.20.10BeforeImage sizes setBanner overlaysFont fallback tunedCLS score

Example: illustrative scores for one page as each fix is applied. Your numbers will differ.

How to confirm it's fixed

Confirmation checklist
  • Re-run PageSpeed Insights on each affected page and confirm lab CLS is 0.1 or lower
  • Record a fresh DevTools Performance trace and confirm no large Layout Shift markers remain
  • Test as a first-time visitor in a private window with the cookie banner visible
  • Test on an emulated mobile device with throttled network
  • Check the Core Web Vitals report in Search Console and start validation of the fix
  • Wait for field data to update, which takes about 28 days of real-user data

How to prevent it happening again

Habits that keep CLS low
  • Always set width and height or an aspect-ratio on images, video and embeds
  • Test every new banner, pop-up, widget or app for shifts before it goes live
  • Add new tags and scripts to a staging copy first and measure CLS
  • Set a CLS budget of 0.1 for key pages and check it on a schedule
  • Review CLS after theme, plugin or page builder updates
  • Keep font changes deliberate and test the fallback font

How FunnelGuard handles this

FunnelGuard detects this issue today. It uses a Core Web Vitals budget check (cwv_budget): when a robot visitor runs your journeys on a schedule, it measures page performance on the pages it visits and flags a page whose CLS goes over the 0.1 budget. A failure is re-checked from a second region before one alert goes out, with a screenshot and a likely cause.

This is a lab-style measurement from a robot visit, not your real-user field data, so use Search Console for that view. You can start with the Free plan (1 site, 2 journeys, daily checks, no card), or try any paid plan free for 3 days. A free read-only website audit is also available.

How a layout shift builds up on a typical page load
  1. 0.0 s

    Example: text and a hero area appear, with no space reserved for the image

  2. 0.8 s

    Example: the hero image loads and pushes the headline and button down

  3. 1.5 s

    Example: the cookie banner is inserted at the top and moves everything again

  4. 2.2 s

    Example: the web font swaps in and the heading wraps onto a new line

  5. After the fix

    Space is reserved for each element, so nothing moves

Questions people ask

What is a good CLS score?

A good CLS score is 0.1 or lower. Between 0.1 and 0.25 needs improvement, and above 0.25 is poor. Google judges this at the 75th percentile of real page visits.

Why is my CLS so high?

The most common causes are images and embeds without set dimensions, banners or pop-ups inserted above content, ads and widgets that load late, and web fonts that swap in. Record a trace in Chrome DevTools Performance and click the Layout Shift markers to see which element moved.

How do I fix CLS caused by images?

Add width and height attributes that match the image's real proportions, or set an aspect-ratio in CSS. The browser then reserves the space before the image loads, so nothing jumps. Keep max-width: 100% and height: auto so the image still scales.

Does a cookie banner cause layout shift?

Yes, if it is inserted into the page flow and pushes content down. Show it as a fixed overlay at the bottom of the screen, or reserve its height from the first paint, so the page does not move when it appears.

Does CLS affect SEO?

CLS is one of the Core Web Vitals and part of Google's page experience signals, so a poor score can hurt your search visibility. It is one signal among many, and relevant content still matters most. It also affects real users by causing misclicks.

How do I find which element causes layout shift?

Open Chrome DevTools, go to the Performance panel, record a page load and look at the Layout Shift entries in the Experience row. Clicking one highlights the element that moved. PageSpeed Insights also lists 'Avoid large layout shifts' with the elements involved.

How long until Search Console shows my CLS fix?

Search Console uses real-user data collected over about 28 days, so improvements show up gradually. After you fix the issue, use Validate fix in the Core Web Vitals report and re-check lab results in PageSpeed Insights meanwhile.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

How: cwv_budget.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.