I copied catalog_product_view.xml
and pasted it into app\design\frontend\Mytheme\DreamShop\Magento_Catalog\layout
folder and code is added before the default.phtml
<block class="Magento\Catalog\Block\Product\View" name="product.info.options.productname" as="productname" template="Magento_Catalog::product/view/options/productname.phtml"/>