Is it possible to move block or container in Magento 2 only for specific device?

For example, I want to move minicart like that

<move element="minicart" destination="header.panel" before="-"/>

but this code should apply only for Desktop and Table device. But not for Mobile device.

Thanks very much

1 Answer 1


You can use different themes and "User-Agent Exceptions" functionality.

  • Isn't user agent the browser not necessarily the device?
    – camdixon
    Commented Jul 21, 2016 at 5:28

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.