Hash/anchors are being stripped from URLs on mobile. How to stop that?

Would something like this work for you

<a name="cloudflare-r2"></a>
## Cloudflare R2 configuration

this keeps the anchor separate from the heading, and you could add #cloudflare-r2 to the end of the URL to link to it