I think it should be possible to just flash an old firmware, but I have not tested and I cannot confirm that this works. If you want to try android 12, I suggest you download Android studio on your PC and create a virtual phone with Android 12 on it. It will be very laggy but it can give an overall idea of what Android 12 feels.