Is there a method in CSS or Javascript that allows me to eliminate the hover effect on all elements? I am specifically looking for a solution that will disable the hover effect on mobile devices while keeping it intact on desktop. I attempted using pointer-events: none
, however, this removed all events including click events which I would like to retain.
Are there any alternative ways to solely remove the hover property without affecting other events?