Modern day CSS now has @container queries support for dimension and soon also type & condition, and that basically signifies a native way for an if/else condition. Under is an especially simplified case in point. But no one retains you from using Javascript to change the DOM or assigning classes https://whitebookmarks.com/story19430887/prestashop-popup-on-exit-page-on-browser-tab-close-event-things-to-know-before-you-buy