Ok, it's diffcult to write the entire solution without seeing all you code. But here's a suggestion for mobile / desktop (not tablet) which shoul...read more
{% set agent = request.headers['user-agent']|lower|string %}
{% set is_mobile = false %}
{% if agent is string_containing "mobile" || agent is strin...read more