Advanced Custom code on Website

Hello, I have advanced custom code applied on my website in head(css) and body(js) for a inverted cursor. The problem is that is shows on tablet, mobile as well. How can I only get this code applied to desktop?