Adding server-side HTML

Is there a quick way to add a small string of HTML markup to the server-rendered code?

A bot needs to verify the site by finding a snippet of text, but the bot only sees the bot-version of the site, which doesn’t contain that snippet. I want to inject the string right into the server-rendered code.

The string has to appear right in the HTML and not be loaded as an external script.