JavaScript rendering · Raw and rendered HTML
Meta description changed by JavaScript
The server sends this page with one meta description, and a script replaces it with a different one once the page loads in a browser.
How this page is built
A script in the head replaces the content of the meta description as soon as it runs. Crawlers that read only the raw HTML see the original description, and those that render see the new one.
Why it matters
Search engines may show the meta description as the snippet under the title in results. When the raw and rendered versions differ, crawlers that do not render see one description and Google may see the other, so the snippet you planned may not be the one shown.
Changed descriptions usually come from front-end frameworks or tag managers that set head tags in the browser.
How to check it
Compare the raw HTML (view source) with the rendered HTML (the Elements panel in developer tools, or the URL Inspection tool in Search Console). Crawl tools that render JavaScript can store both versions and report differences between them. Here, the description in the head differs between the two.
How to fix it
Write the final description into the HTML the server sends, and stop scripts from changing it.