I have multiple stores on my Magento 2 installation. So I have store 1 base url as http://mystore1.com and store 2 base url as http://mystore2.com. How do i get the base url of store 2 dynamically on a phtml file in store 1.
$block->getBaseUrl() will only return the current store url. Is there a function like
getBaseUrl of store id = 2 ?