title: Javascript - Condition not returning True
body: <p>Its working when i use the portrait mode, but whit the landscape its not working. It returns false. it must return true, could some one help me ? thanks.</p>
  
  <pre><code>    function ismobile(){
  
      let mobileMode;
      let windowWidth = window.innerWidth;
      let windowHeight = window.innerHeight;
  
      if (windowWidth &lt;= 375 &amp;&amp; windowHeight &lt;= 667 || windowWidth &lt;= 675 &amp;&amp; windowHeight &lt;= 375 ) {
  
          mobileMode = true;
  
      }else{
  
          mobileMode = false;
  
      }   
  
      console.log("mobileMode " + mobileMode);
  
  }
  </code></pre>