The problem I am facing is that the responsive auto-ads are overflowing the screen in the AMP version of the website, causing an improper loading of the page with some space visible on the right side for a brief period of time. To resolve this issue, I have applied the following CSS code:
This code limits the width of the ads to 100% of the viewport, preventing the ads from overflowing the screen. However, this has resulted in improper loading of every AMP post on my website. Is there any solution? I read something similar in one of the topics, but I am not sure, so didn’t try that css. Here’s that topic.
The problem is with the AMP (mobile version) only, otherwise loading is fine, ads are showing correctly.
This topic was modified 3 years, 3 months ago by Anuj.
The page I need help with: [log in to see the link]
It kind of worked but the texts and other elemens were appearing smaller than their usual size (liked zoomed-out). Also, don’t know why but ads also stopped showing in the non-amp version. So, now, I have removed the code which you provided me and added the same which I have been using. I don’t know what to do now!
Thank you, and that’s fantastic! Now there’s no issue with the amp or the loading of the page.
But…again, ads (between article ads) in mobile (non-amp version) aren’t showing when using this code. I don’t know how is that possible, but it’s causing the issue somehow.
I am using some more css for aligning the texts and inline images in the mobile version of the post. I don’t know if that has something to do with the conflict. Here’s the list of the additional css I am using –
I don’t have any knowledge of css or any coding stuff, but is it possible to display my non-amp or say overall site in “table-cell” format? may be this is causing the issue! I have no idea, though, just guessing.
Is .separate-containers .inside-article part correct? I mean, there are two things here, so do I need to use comma or something? But it’s working, so don’t know.
Thank you. I will get in touch with you after confirming about the css, since the ads aren’t showing in the non-amp version most of the time when adding the css you provided.