In Magento 2 I have a phtml file I am trying to get what store view is currently being seen by the website visitor. However it does not seem to work. I dont want to have to create a whole module or plugin .
if (Mage::app()->getStore()->getId() > '1')
{
echo "you are 1";
}
elseif (Mage::app()->getStore()->getId() > '2')
{
echo "you are 2";
}
else
{
echo "you are not 1 or 2";
}