When one block which is placed in XYZ position into desktop view and then you want to move that div without breaking its functionality.
1.) Add some ID to the main minicart block Magento_Checkout/templates/cart/minicart.phtml
Here we had added ID = “sourceMinicart”. 2.) There add one division where you want to move that minicart
Here we had added ID = “sourceMinicart”.
2.) There add one division where you want to move that minicart