Can i disable – Sebastian Simon Dec 09 '21 at 15:46

  • 1
    How are you defining 'mobile' - viewport dimensions or some other capability? – A Haworth Dec 09 '21 at 15:50
  • It seems like you could check the view size, and then show your error message if it's less than... Can you supply more information? *What are you actually trying to accomplish?* Check out the link @SebastianSimon posted in their comment – wahwahwah Dec 09 '21 at 16:00
  • 1 Answers1

    -1

    So if I'm reading this correctly you want to show something on mobile but hide it on desktop? If so this can be achieved using media queries.

    @media screen and (min-width: 768px) {
      .hide-on-mobile {
        display: none;
      }
    }
    <div class="hide-on-mobile">
      <p>Code to hide</p>
    </div>
    Ben Seward
    • 29
    • 1
    • 6