Modern day CSS now has @container queries support for measurement and soon also style & state, Which mainly indicates a native way for an if/else situation. Below is an especially simplified case in point. Modules will inform you about out there updates. Read the changelog and carry out a 1-simply https://checkbookmarks.com/story4940448/prestashop-popup-on-exit-page-on-browser-tab-close-event-things-to-know-before-you-buy