Plugin use on mobile devices

How can I disable the popup for mobile devices? I tried using CSS, display:none, but that isn't working for me