XF 2.2 If mobile condition?

Is there an if condition to only display to mobile devices?

Like say

<xf:if is="mobile">
show this content
<xf:else />
show this other content
</xf:if>

Tanks you in advance!
 
You can use media queries to hide/show content based on the viewport size.

What is it you are trying to do exactly?

I have a 700px banner that if unregistered, it encourages registering, if registered a different 700px wide banner encourages a user upgrade for adsense free browsing. it is causing phones to scroll right, so for phones I'd like to display same banners idea but 300px wide
 
Back
Top Bottom