Archived topic
Layout shift on AMP
5 replies · Started by ETO on December 11, 2020
Hello!
There is a layout shift on the AMP version of my site. I think it is because of Adsense ads.
Do you have any suggestion?
Hi there,
So you don't have this issue with the Adsense ads disabled?
I don't think there is a way around it if that's the case.
Hi, Leo!
What is odd that the same ads do not cause any problems on mobile but they do on AMP although I am not sure if the problem is really because of the ads.
Could you please check what causes the layout shift on AMP while there is no problem on normal mobile pages?
Hi there,
where are you seeing the Layout Shift? I ran a Page Speed Insights report and Lab Data CLS is 0. I then ran a performance test in Chrome Dev tools and no CLS is visible or reported.
It does not appear in page speed report because the problem is on AMP only. I sent you a screenshot video so that you can see what I mean.
Aah you mean horizontal scroll... you would need to check the advert settings you're loading to correct that. Nothing that the Theme can do can change that