Present day CSS now has @container queries support for sizing and shortly also model & state, and that basically usually means a native way for an if/else situation. Down below is an especially simplified illustration. Be aware - This system can only be used within an hierarchy and never within https://www.presta-addons-modules.com/en/seo/prestashop-htmlcssjsonline-chatssoftware-integration.html