My problem is the common one that my website is an Angular SPA and the meta tags for SEO and Facebook etc are not visible to the various bots, except the static ones on the index.html. There are many questions about this on SO and the usual answer is "you're stuffed, sorry, use SSR".
Using SSR for our whole site is not really an option right now so I'd like to find some other solution/bodge that doesn't use Javascript.
Is it possible to either edit the content of the index.html file before serving it, or serve different files based on the requesting URL (and, ideally, user agent for bots only)? I have seen this and similar methods using Node like this: https://blog.logrocket.com/adding-dynamic-meta-tags-react-app-without-ssr/
However we have IIS on a shared Hostgator server, so no access to IIS settings.
In short: Is it possible to edit the meta tags content in index.html before returning the request, on IIS?
The URL would normally contain an ID, so I could even have a json file to map all the required values or something and pull it from here, if that is even possible...