Can you set a variable value based on @media condition... i.e. BS4 breakpoints?

As the title says.

Can I set the value or a variable to be either 1 or based on the browser view size/media query min width?

This is basically just determining whether i want my sidebar menu to start opened or closed based on what device the user loads it on.

Community Page
Last updated: