with ANXCamera you get the best results.
This works for me:
https://xdaforums.com/t/anx-camera-installation-for-android-11-based-custom-roms.4243345/
I only install MiuiKamera.zip and ANXCameraUnity_185R.SaltyIntelligentPlainsqueaker.zip.
Portrait mode is working fine.