Try Virtual Master. It creates a virtual phone running an older version of Android on your real device. Virtual Master - Android Clone - Apps on Google Play
Because it is an entire Android system running inside of your current phone running its Android system, it will require a lot of RAM.
Oh yeah, because of Android 12 introducing the PhantomProcessKiller to make virtual machine apps normally impossible to run, you will need to root your phone with Magisk and install this module:
https://raw.githubusercontent.com/HardcodedCat/termux-monet/master/ppr/PhantomPr...