Is it possible to suppress HTML element based on page width?


I’m looking to display a customer support chat window, but only on the desktop version of my app.

Currently, both the mobile and desktop versions of my app run off of the same single page app, and I make use of conditional statements to control responsiveness, etc.

I’ve noticed that I cannot use a “this element is visible” conditional statement for an HTML element. I’m wondering, is there some other way to use something like page width to determine whether an HTML element will load?


Sometimes when an element doesn’t have the functions I want, I just put it inside a group and make the group background invisible. Then you should be able to hide it depending on the page width. Have you tried that?


I’ll give that a shot - good suggestion