To check is user browsing from the touch device here is snippet for that. So you can add your custom classes to the body.
function isTouchDevice(){ return true == ("ontouchstart" in window || window.DocumentTouch && document instanceof DocumentTouch); } if(isTouchDevice()===true) { $('body').addClass('dp-touch-device') }