title: How to not run function if its a mobile device?
body: <p>I have a modal pop up function on my website, but i don't want this to run if the browser is smaller than 480px. I have found that if I put an if statement such as:</p>
  
  <pre><code>if (window.innerWidth &amp;&amp; window.innerWidth &gt; 480) {
  
   run function()
  }
  </code></pre>
  
  <p>Then it should run only if the browsers innerWidth is > 480. However its not working and I think its because I have page scaling on this website. Can any one help me with a conditional statement if page scaling is on? Thanks.</p>