How to detect device in template file in drupal 7 I want to get the device whether is it Mobile,Tablet,Iphone or desktop based on the screen width. I know about breakpoint and picture module. But I need to change some HTML based on that condition. How can I get the condition in tpl file.
I would use Context &amp; Context Mobile Detect