How to judge mobile or full site view?

Hi:
I'm developing plugin for vanilla.I want to know how to judge whether the users are viewing the vanilla site with mobile mode or full site view mode with there web browsers in my plugin?
Thanks!
0
Hi:
I'm developing plugin for vanilla.I want to know how to judge whether the users are viewing the vanilla site with mobile mode or full site view mode with there web browsers in my plugin?
Thanks!
Comments
You can use
IsMobile()
more accurategrep is your friend.
Thank you very much!
Hi:
Can you help take a look for this?
http://vanillaforums.org/discussion/23491/how-to-replace-the-output-html-content#latest
Thanks!