For our application we used Free Rasp as a solution to this problem. You can find more docs on their website.
https://www.talsec.app/freerasp-in-app-protection-security-talsec