Web Analytics

Fill the form & Get Installation Support

How to Detect Mobile Device in Magento 2?

I created Index.php controller for that at app/code/Vendor/Modulename/Controller/Index/ and add this below code :

You can add this above code in your controller or any file. You need to inject \Magento\Framework\HTTP\Header class into your construct.

Fill the below form if you have any Magento programming need.





    Recent Articles

    Author Info

    Author Image

    Magento 2 Developer

    Hire H. Shingala

    Get a Free Quote





      /* second popup */

      Connect With Us