How to use mobile detect

No, I mean your folder structure should look like this:

/site/plugins/detect/detect.php

If you can’t get it to work and don’t need the session variable, you can use my alternative plugin, which is basically just a wrapper for the Mobile Detect library.