# Google adsense causing large horizontal scrolling on mobile

**URL:** https://meta.discourse.org/t/google-adsense-causing-large-horizontal-scrolling-on-mobile/97126
**Category:** UX
**Created:** [September 13, 2018, 3:21pm UTC](https://meta.discourse.org/t/google-adsense-causing-large-horizontal-scrolling-on-mobile/97126 "2018-09-13T15:21:20Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![zyouchi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zyouchi/32/99141_2.png) [@zyouchi](https://meta.discourse.org/u/zyouchi)
#### Post date: [September 13, 2018, 3:21pm UTC](https://meta.discourse.org/t/google-adsense-causing-large-horizontal-scrolling-on-mobile/97126/1 "2018-09-13T15:21:20Z")

</div>

Create an ad unit with size 320 \* 100 with google adsense and choose 320 \* 100 large mobile banner with “adsense mobile topic list top top size” in the discourse management screen, then the mobile design will collapse like the image below.

 ![image](https://global.discourse-cdn.com/meta/original/3X/4/3/43ad771ea47845e33e5cfc377de4d96d15cd6b74.jpeg)  
 ![image](https://global.discourse-cdn.com/meta/original/3X/3/5/357c4fba21530aa4e2b4cedeaeec57903af7a7bc.jpeg)  
 ![image](https://global.discourse-cdn.com/meta/original/3X/7/e/7ee5c95f0ebefcfcf82623b07cf7d797e2455605.jpeg)

---

<div class="post-metadata">

### Author: ![zyouchi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zyouchi/32/99141_2.png) [@zyouchi](https://meta.discourse.org/u/zyouchi)
#### Post date: [September 14, 2018, 4:25am UTC](https://meta.discourse.org/t/google-adsense-causing-large-horizontal-scrolling-on-mobile/97126/2 "2018-09-14T04:25:02Z")

</div>

Does anyone know how to solve this bug?

---

<div class="post-metadata">

### Author: ![Johani](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/johani/32/176920_2.png) [@Johani](https://meta.discourse.org/u/Johani)
#### Post date: [September 14, 2018, 10:54am UTC](https://meta.discourse.org/t/google-adsense-causing-large-horizontal-scrolling-on-mobile/97126/3 "2018-09-14T10:54:40Z")

</div>

Can you post a link to the site you’re having trouble with?

---

<div class="post-metadata">

### Author: ![Gulshan\_Kumar](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gulshan_kumar/32/119562_2.png) [@Gulshan\_Kumar](https://meta.discourse.org/u/Gulshan_Kumar)
#### Post date: [September 14, 2018, 8:36pm UTC](https://meta.discourse.org/t/google-adsense-causing-large-horizontal-scrolling-on-mobile/97126/4 "2018-09-14T20:36:15Z")

</div>

Horizontal scroll, content falling outside of viewport, this problem I had faced on very first day while using official Ad plugin. This problem occurs on mobile devices.

To fix, just hide Ad unit label using `display: none;` css property.

 ![Screenshot_20180915-020758__01](https://global.discourse-cdn.com/meta/original/3X/7/a/7a493d3d51ef6c4682eaa0f3a0b35d23e89af7f0.jpeg)

---

<div class="post-metadata">

### Author: ![Johani](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/johani/32/176920_2.png) [@Johani](https://meta.discourse.org/u/Johani)
#### Post date: [September 14, 2018, 8:55pm UTC](https://meta.discourse.org/t/google-adsense-causing-large-horizontal-scrolling-on-mobile/97126/5 "2018-09-14T20:55:46Z")

</div>

horizontal scroll on mobiles fixed via:

[https://github.com/discourse/discourse-adplugin/commit/2ed1d1c5d6b456ddbbae71823015d96539a44f68](https://github.com/discourse/discourse-adplugin/commit/2ed1d1c5d6b456ddbbae71823015d96539a44f68)

Thanks for reporting @zyouchi 👍

* * *

> [@Gulshan\_Kumar](#):
>
> To fix, just hide Ad unit label using `display: none;` css property.

This is most likely [against the terms of use](https://support.google.com/adsense/answer/4533986) for adsense and is not recommended.

---

<div class="post-metadata">

### Author: ![Gulshan\_Kumar](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gulshan_kumar/32/119562_2.png) [@Gulshan\_Kumar](https://meta.discourse.org/u/Gulshan_Kumar)
#### Post date: [September 14, 2018, 8:58pm UTC](https://meta.discourse.org/t/google-adsense-causing-large-horizontal-scrolling-on-mobile/97126/6 "2018-09-14T20:58:45Z")

</div>

By default AdSense doesn’t show any label. The plugin itself add a label called “Advertisment” above each ad unit. When I did hide, the problem was fixed. I don’t see it as violation. I am still using this plug-in. Overall, excellent experience.

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [September 14, 2018, 9:21pm UTC](https://meta.discourse.org/t/google-adsense-causing-large-horizontal-scrolling-on-mobile/97126/7 "2018-09-14T21:21:10Z")

</div>


