Layout shift on Shopify: the usual culprits
You’re on a product page on your phone. You reach for “Add to cart”, and just as your thumb lands, a banner loads at the top, everything moves down, and you’ve tapped a size guide instead. Or worse, a different product.
That jump is layout shift, and Google measures it as Cumulative Layout Shift (CLS), one of the three Core Web Vitals alongside LCP and INP. A good score is 0.1 or less; above 0.25 counts as poor.
On Shopify, CLS problems come from a surprisingly short list of places. Here’s where I look first, and how to tell which one is causing yours.
Why it matters on a store
CLS is a ranking signal, but a small one. The bigger reason to fix it is that on a store, layout shift costs taps. People mis-click, lose their place, or decide the site feels broken. Fixing it helps the customer first and the Core Web Vitals report second.
How to find what’s shifting
Before guessing, measure.
- Search Console → Core Web Vitals. Shows whether Google’s real-user data flags CLS on mobile or desktop, and which groups of URLs (often product pages, or collections) are affected.
- PageSpeed Insights. Run a product page. The field data at the top tells you whether real visitors have a problem; the lab section lists “Avoid large layout shifts” with the elements that moved.
- Chrome DevTools. Open the Performance panel, record a page load, and look at the Layout Shifts track. Each shift is highlighted on the page so you can see exactly what moved.
Test on mobile settings. Plenty of stores are fine on desktop and messy on phones, because elements stack differently.
The usual culprits
1. Images without dimensions
When the browser doesn’t know an image’s size in advance, it reserves no space, then pushes everything down when the image arrives.
Shopify’s image_tag filter adds width and height automatically, and modern themes use it. Older themes, custom sections and images pasted into product descriptions often don’t. Check the code for <img> tags without width and height, and fix the template or use CSS aspect-ratio to reserve the space.
2. Apps that inject content after the page loads
This is the big one on Shopify. Review widgets, star ratings under the product title, “X people are viewing this”, upsell blocks, trust badges, countdown timers: many apps load their content with JavaScript once the page is already showing, so it lands on top of what’s there and shoves it down.
Fixes, in order of preference:
- Use the app’s theme app block (if it has one) rather than an injected script. App blocks render in the theme’s layout and often reserve space properly.
- Reserve space with CSS: give the container a
min-heightmatching what the widget usually takes. - Ask whether you need it. Some of these widgets add little. I wrote about trimming them in Shopify apps and site speed: keeping them in check.
3. Announcement bars and banners
An announcement bar or promo banner that appears after load pushes the whole page down. If it’s rendered by the theme, it’s usually fine. If an app adds it, or it only appears after a script checks something (country, cart value, a cookie), it shifts.
Either render it with the page, or overlay it (fixed position, so it covers content rather than moving it).
4. Cookie and pop-up banners
Same problem, different job. A consent banner that slides in and pushes content shifts the page. One that floats over the bottom of the screen doesn’t count as layout shift, because nothing else moves.
5. Web fonts
When a custom font loads, text can reflow: lines get longer or shorter, and everything below moves. Shopify’s own font library handles this reasonably well. Custom fonts uploaded and loaded by hand often don’t.
Use font-display: swap with a fallback font that’s similar in size, preload the main font file, and use fewer font weights. There’s more in Shopify page speed: fonts, sliders and the hero image.
6. Sliders and carousels
Hero sliders often load the first slide, then initialise with JavaScript and resize, or briefly show all slides stacked before collapsing them. Give the slider a fixed aspect ratio, and seriously consider replacing it with one strong image.
7. Dynamic checkout and payment buttons
The accelerated checkout buttons (Shop Pay, PayPal and the like) load from scripts and can appear a moment after the rest of the product form. Some themes reserve space for them; some don’t. If DevTools shows the buy buttons moving, a min-height on their container usually fixes it.
8. Prices and currencies that change after load
Currency converter apps and some discount apps rewrite prices with JavaScript. If the new price is longer than the old one, text wraps and the page shifts. Shopify Markets handles currencies on the server, which avoids this; an app doing it in the browser often doesn’t.
A quick fix order
If CLS is flagged and you’re not sure where to start:
- Run a product page through DevTools and find the biggest shift.
- If it’s an app, check for an app block, reserve space or remove it.
- If it’s images, add dimensions or aspect ratios in the theme.
- If it’s the header area, fix the announcement bar or banner.
- Re-test, then wait. Search Console’s field data covers the last 28 days, so improvements take weeks to show.
When it’s the theme itself
If the shifts come from the theme’s own sections, a theme update might help, since theme developers have been fixing CLS issues since Core Web Vitals arrived. Just keep track of any edits you’ve made first; I covered how in Shopify theme updates without losing your SEO edits.
Related reading
- Core Web Vitals on Shopify: what you control
- Shopify page speed: fonts, sliders and the hero image
- Shopify apps and site speed: keeping them in check
- INP on Shopify: apps, themes and what you can change
Open your best-selling product page on your phone, reload it and watch the top half of the screen. If anything moves after you think it’s loaded, you’ve found your first fix.