title: Javascript click event on Android mobile device browser doesn't work
body: <p>I have a click event that works on desktop browser but not on my mobile I found a few similar threads but none helped to find a solution, this happens on Android haven't tried on other device. Thanks for input.</p>
  
  <pre><code> const mobileMenuIcon = document.getElementById('mobile-menu-icon')
  
      mobileMenuIcon.addEventListener('click', (e) =&gt; {
          e.preventDefault();
  
          const mainMenu = document.getElementById('main-menu');
  
          if (mainMenu.classList.contains('hidden')){
              mainMenu.classList.replace('hidden', 'visible');
          } else {
              mainMenu.classList.replace('visible', 'hidden');
          }
      });
  </code></pre>