I am creating a module for Widget like - Top 5 Products, Product of the Day, Best rated product, Random 5 product, latest product and this will be placed on external website via/in iframe, I don't want the output to be cached by FPC/Varnish
Which can be archived by
<block class="\Magento\Framework\View\Element\Template" template="sample:module::sampletemplate.phtml" name="sampleblock" cacheable="false" />
cacheable="false" is used
and I want only the block template no header, footer or content area just the module output, some thing in the image below.