Forum Discussion
Hello clemensw , try with below code.
<#if  !clientDevice.desktop>
    <!-- Mobile related code -->
<#else>
    <!-- Desktop related code -->
</#if>
Hi saikumarn
thank you, but <#if !clientDevice.desktop> ... </#if> can be used in components, but not in layout definitions - right?
How can we define a row in layout defintion that is displayed on mobile or on desktop only?
Here a simple mockup example:
best, clemensw
- saikumarn7 years agoAdvisorHi clemensw <#if !clientDevice.desktop> ... </#if> --> yes , we can use this code in components only. Instead of using the code in layout, combine the two components in one component and use this component in your page. Ex : <#if !clientDevice.desktop> 
 <@component id="your_mobile_component_id"/>
 <#else>
 <@component id="your_desktop_component_id"/>
 </#if>