I'm currently working on a Wordpress web and i want to use a different template for a page when a user sees it on a mobile device. For example I have a page called Proyects that uses the template gallery.php but if somebody sees it in a mobile device the same page Proyects use the template gallery_mobile.php. I don't know if is something you put it in the template (ie page.php) or in the functions.php.
Thanks in advance!