title: Disable google AdSense on Mobile Devices using JavaScript
body: <p>I want to disable Google ADS in Mobile devices.</p>
  
  <p>At the minutes I have this</p>
  
  <pre><code>&lt;script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"&gt;&lt;/script&gt;
  if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) {
  }else
  {
  &lt;ins class="adsbygoogle"
       style="display:block"
       data-ad-client="*****"
       data-ad-slot="****"
       data-ad-format="***"&gt;&lt;/ins&gt;
  }
  &lt;script&gt;
  (adsbygoogle = window.adsbygoogle || []).push({});
  &lt;/script&gt;
  </code></pre>
  
  <p>But it’s not working.</p>
  
  <p>I’m struggling to find the code to disable Google ADS in Mobile devices. </p>
  
  <p>Any help or other ideas would be much appreciated.</p>