Drift Custom Chatbots turn interest into pipeline by pre-qualifying visitors then offering and scheduling a meeting with sales. But it is annoying to have it in mobile resolution. To disable the Drift chatbot in mobile, we can read the width of the device and if that is greater than 520px then we can allow to include the drift code snippet.
var device_width = window.innerWidth, screenType; if (device_width <= 520) { screenType = "mobile"; } else if (device_width <= 820) { screenType = "tablet"; } else { screenType = "desktop"; } if(screenType != 'mobile') { //ADD YOUR DRIFT CODE SNIPPET }, 5e3);