# Remove a CSS class for mobile

**URL:** <https://forum.kirupa.com/t/remove-a-css-class-for-mobile/332468>\
**Category:** Uncategorized\
**Created:** [June 19, 2014, 6:53pm UTC](https://forum.kirupa.com/t/remove-a-css-class-for-mobile/332468 "2014-06-19T18:53:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![webguync](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/webguync/32/2434_2.png) [@webguync](https://forum.kirupa.com/u/webguync)\
**Post date:** [June 19, 2014, 6:53pm UTC](https://forum.kirupa.com/t/remove-a-css-class-for-mobile/332468/1 "2014-06-19T18:53:30Z")

</div>

Anyone have any ideas on how to remove a CSS class when viewing in mobile?  
My situation is I have a filter set up which filters an img with a CSS class to Black and White and then changes to color on hover. I cannot get this to work on mobile with a touch, so I thought I would just disable the class all together for mobile devices.

Any ideas of if this could work with touch on mobile is of interest as well!

thanks
