The snippet allows redirection of mobile devices to a different location or if no location given can be used with the snippet to test for mobile devices.

[[!isMobile &redirectTo=`[[~10]]`]]
Parameter Description
redirectTo If given the URL to redirect the browser to if it is a mobile browser.

If redirecTo is not given then the snippet prints 1 for mobile devices and 0 for desktop browsers.

If a page with the [[!isMobile]] snippet on is called with ?usedesktopsite=1 then the redirection will not happen for the remainder of the current session.

As the results of the snippet change per call it should be placed in a uncached form.