Things are getting more and more complicated in that regard.
A number of apps don't work on a rooted device, and I fear they're getting more. Now some of them will work with MagiskHide, but some won't. On the other hand, some apps don't even work on an unrooted, alternative Android like LineageOS. They might explicitly check for a non-stock ROM, or they might check for an unlocked bootloader. Depending on how they do it, you might be out of luck whether you're rooted or not.
With one important app (VPN identity token) which didn't run on the unrooted LOS that I had been using I was l