Add class when mobile

I would like to toggle ‘sticky-top’ class to my header when in mobile or tablet view, I can’t understand how to achieve this.

Community Page
Last updated: