Device Detection

If you want to execute a set of block based on the device on the server  side you can full this shortcode,

Parameters

mobile: all the code within this block will be executed only if request is coming from mobile phones

tablet: All the code within this block will be executed only if request is coming from a tabled device

mobile_or_tablet: All the code within this block will be executed if request is coming from either mobile or tablet device

desktop: All the code within this block will be executed only if request is coming from deskopt/laptop.