Contemporary CSS now has @container queries support for dimension and shortly also model & condition, and that basically indicates a native way for an if/else affliction. Underneath is an extremely simplified instance. Here's some code which i a short while ago wrote. I imagine that it provides a essential clarification https://social4geek.com/story4963607/prestashop-live-chat-support-with-zopim-zendesk-chat-an-overview