How can I remove JS from SCSS file on the Supply Theme?

I’m having an issue with converting my scss file on the Supply theme to css due to this JS -“{% if settings.ajax_cart_method != ‘page’ %}” this is on the first line and I need to move the process somewhere else. Does anyone know the best way to do this?

Cheers

That’s Liquid, not JavaScript. But anyway, I would recommend putting that if statement in your theme.liquid to add a class to the tag, and then keep that CSS in the stylesheet, scoped to that class where needed.