wordpress – Yoast SEO only displays on static pages

hello I have Yoast SEO installed in my wordpress it works fine in most pages i get this enter the description of the image here

but on some pages (the most important ones that are dynamic), the preview section of code snippets does not show up.
like that enter the description of the image here

I have been looking for days but without luck