JavaScript Abaikan fungsi jika dilihat di ponsel

if (/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent)) {
        // what you want to run in mobile
}
Naive Chief