how to recognize the elgg site being viewed in mobile devices?

how to recognize the elgg site being viewed in mobile devices? i want to recognize that site being view on elgg mobile site versus desktop? thanks