[Liquid] I want to know if liquid has access to user agent

As post, Or are there some static reserved variables for mobile/pc environment judging?

Sometimes I need to optimize the rendering for mobile.

e.g. :

{% if isMobile === True %}
{% render "./mobile-layout" %}
{% else %}
{% render "./pc-layout" %}
{% endif %}

Hello , @Antimoron

There is no way to identify this using liquid code.

But you can use javascript/jquery code to identify the screen size

Something like this:-