<referenceContainer name="after.body.start"> <block class="MagentoFrameworkViewElementTemplate" name="custom.file" before="-" template="Magento_Theme::html/custom.phtml" /> </referenceContainer>