I need to be able to initiate differently couple of CSS elements if the user is browsing the website with "mobile" user agent.

To improve the mobile browsing experience.

I am not looking for "hidden-phone" viewport tricks.

I'd like to be able to either make some CSS elements only display when mobile user agent is detected, OR have like two templates, and that one would load for desktop and one for mobile.

The idea that this is possible comes from seeing other websites that have both mobile and desktop versions, some of them need user to click something to change that layout and others auto-detect it.

Doable in Joomla? How?

Thanks in advance.

1 Answer 1


There is mobilejoomla which is an extension dedicated to mobile, I had used it in the early versions and was ok.

Another way is to configure your template to detect mobile devices by means of scripts like mobiledetect or detectmobilebrowsers and adapt accordingly.

A third way is the extension Advanced Module Manager described in this question

  • Thanks for the answer! I'm not sure about mobilejoomla, I checked their site but I worry they'd change the whole template just to make things work? I'm on my custom template so I wouldn't want that. Ads for free and why'd I pay when this should be normal thing done in Joom? Pass... I will go with mobiledetect and see the results.
    – Borg777
    Aug 17, 2015 at 15:26
  • That's why I mentioned all the possible ways ;) . Glad I helped.
    – ilias
    Aug 17, 2015 at 15:27
  • 1
    was trying the manual mobiledetect... but I'm not in my top concentration now to attempt it without step by step instructions and examples didn't really "speak to me". But I found this, a Joomla plugin for mobiledetect. Might be of use to someone: link from yagendoo.
    – Borg777
    Aug 17, 2015 at 20:32
  • 1
    and here's another one, with muuuch better documentation: link
    – Borg777
    Aug 17, 2015 at 21:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.