Magisk (root app) has options to hide itself to selected apps. I had one app complain abouy beinh rooted and I added it to the hidelist. It worked. After that, I just added all my apps that don't need root to the hidelist. There is also sanboxing that creates separate environments (personal/work). I've used Island and I'm now using Shelter sandboxing after reading privacyguides. I mainly used it to run two instances of a voip phone app so I can have 2 phone numbers.
There's probably an Xposed module that may or may not work. For my local cities bus app, I used to patch the APK manually because the Xposed module didn't work (but this was many moons ago).
Your best bet is to just search for how to setup Xposed on your phone+ROM then try the different modules to see if one works for. Ideally build it yourself from source since you don't want to trust random code being injected into your trusted apps.