Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.

How to disable an ad on mobile but not delete it?

+1 vote
339 views
asked Jun 24, 2015 in Q2A Core by Love Hina

Google AdSense TOS :"
This also applies to mobile sites. In addition to not pushing the content below the fold of a mobile site, two AdSense for content ads may not appear on a mobile page at same time."

My site display 2 ads on mobile
How to disable an ad on mobile but not delete it? 

1 Answer

+1 vote
answered Jul 7, 2015 by steven2

I think you have to dig into the php code, but here is the general idea.

Use media query:

@media (max-width: 400px) { .adsense_hide { display: none; }  }

Then put:
<div class=adsense_hide> around the 2nd instance of adsense code.
...