But is there a suggested way to do this?
EDIT: I am looking for examples on how the Shopware 6 core developers do this, to find a best-practice and not invent something own.
If you need it once a page, you can add it into data-attribute within plugin-related element. Other way, especually recommended when you need it multiple time on an page to save content:
I personally like set these texts in a variable for the window. Just where other window-variable are set and request them within the plugin.