Title: Amp-ads causing incorrect screen
Last modified: November 4, 2021

---

# Amp-ads causing incorrect screen

 *  Resolved [Anuj](https://wordpress.org/support/users/anujmakhloga/)
 * (@anujmakhloga)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/amp-ads-causing-incorrect-screen/)
 * Hi,
 * I was using the adsforwp plugin before this, which was working fine until a point.
   I installed this today, and it’s just a fantastic plugin. However, there are 
   some issues I am facing with this plugin in the amp version.
 * 1) Ads in amp aren’t showing in proper alignment. Some are going beyond the width
   of the page, causing inappropriate screen size. Have a look – [adimage1](https://ibb.co/wdZKHLp)
   and [adimage2](https://ibb.co/r0j0vbH)
 * 2) I had asked for plugin and theme support when I was using the adsforwp plugin,
   and they couldn’t do anything with this. In fact, they asked me to contact the
   plugin support. Here’s the error that Theme support provided me [errorImage](https://ibb.co/2ZyM50t)
   And this is what he exactly said > [Themesupportreply](https://ibb.co/jWtRRsS)
 * Not all pages have this issue; please check other pages if you don’t get errors
   on the attached page. Sometimes ads are showing correctly.
 * 3) How to implement standard ads only for the amp? Like, in the adsforwp plugin,
   there was this option of non-amp and amp compatibility. But here, I can only 
   see the ‘amp compatibility’ option. How to implement ads only for the amp?
 * Would you please help me with all these issues?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Famp-ads-causing-incorrect-screen%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Support [WPQuads Support](https://wordpress.org/support/users/wpquadssupport/)
 * (@wpquadssupport)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/amp-ads-causing-incorrect-screen/#post-15040553)
 * Can you please add the below CSS in AMP option panel and check it once and let
   me know back?
 *     ```
       amp-ad.i-amphtml-layout-fixed.i-amphtml-layout-size-defined.i-amphtml-element.i-amphtml-built.i-amphtml-layout {
           width: 337px!important;
       }
       ```
   
 *  Thread Starter [Anuj](https://wordpress.org/support/users/anujmakhloga/)
 * (@anujmakhloga)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/amp-ads-causing-incorrect-screen/#post-15040871)
 * Thanks.
 * But there is no option for the CSS in the amp plugin. I have created a query 
   regarding the same, will get back to you for sure.
 *  Thread Starter [Anuj](https://wordpress.org/support/users/anujmakhloga/)
 * (@anujmakhloga)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/amp-ads-causing-incorrect-screen/#post-15044760)
 * The code isn’t working; ads are still exceeding the width.
 *  Plugin Support [WPQuads Support](https://wordpress.org/support/users/wpquadssupport/)
 * (@wpquadssupport)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/amp-ads-causing-incorrect-screen/#post-15057272)
 * It’s perfectly appearing fine now. Now the ads are displaying in correct width.
   Can you please check it once again and let me know?
 * Reference screengrabs:
    [https://prnt.sc/1z42h6o](https://prnt.sc/1z42h6o) [https://prnt.sc/1z42itw](https://prnt.sc/1z42itw)
 *  Thread Starter [Anuj](https://wordpress.org/support/users/anujmakhloga/)
 * (@anujmakhloga)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/amp-ads-causing-incorrect-screen/#post-15058517)
 * The following CSS is provided by the theme support –
 * > html[amp] amp-ad[type=adsense], amp-ad[type=doubleclick] {max-width: 100vw;}
 * Yes, it’s working I guess. Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Amp-ads causing incorrect screen’ is closed to new replies.

 * ![](https://ps.w.org/quick-adsense-reloaded/assets/icon-256x256.png?rev=2369641)
 * [Quads Ads Manager for Google AdSense](https://wordpress.org/plugins/quick-adsense-reloaded/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/quick-adsense-reloaded/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/quick-adsense-reloaded/)
 * [Active Topics](https://wordpress.org/support/plugin/quick-adsense-reloaded/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/quick-adsense-reloaded/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/quick-adsense-reloaded/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Anuj](https://wordpress.org/support/users/anujmakhloga/)
 * Last activity: [4 years, 7 months ago](https://wordpress.org/support/topic/amp-ads-causing-incorrect-screen/#post-15058517)
 * Status: resolved