How to identity configurable product in magento frontend ?
The quickest what to figure out if a product is a configurable product on the frontend is to view the page source and look for the body tag"
If you are trying to figure out if a product is configurable in a phtml file
if ($product->getTypeId() === 'configurable')
Please follow below link -It will help you.
Please see step 3 carefully -