When you need to add dynamic content to your CMS pages in Magento 2, Call Custom phtml file on all CMS Pages is a good move. So, let us learn about Magento 2: Call Custom phtml file on all CMS Pages.
Checkout Steps to Call Custom phtml file on all CMS Pages in Magento 2