I don't know the cause of the bootloop, sorry.Now I set in the config.txt:
and did a reboot, but unfortunately my phone doesnt boot anymore
It hangs in the androidone logo with the red-blue-green-yellow moving line, and never leaves that state.
I thought I could fix it with flashing Magisk 22.1 again, in (on the fly) TWRP, no change. Flashed the Magisk uninstaller, no change, booted with adb the original boot.img, no change.
Then I flashed the whole 10.0.24.0 ROM (tissot_images_V10.0.24.0.PDHMIXM_20200810.0000.00_9.0_49f16fd30d.tgz) with MiFlash 2017.7.20.0 XiaomiFlash.exe and the flashing says success, but still no boot ending, after hours not. It only stops when the battery is empty
I dont know what to do more, I am not sure, that my config.txt settings and WebView Switcher did that, but it is likely.
Now I tried the 10.0.23.0 ROM for my Xiaomi Mi A1 and still this doesnt boot.
I dont understand this, I thought when I flash the whole Stock ROM, there cannot be a boot loop anymore!?
EDIT: I asked in the Xiaomi Mi A1 XDA Forum about it...
But you can try to install Magisk Manager for Recovery Mode (mm) .
Maybe it can fix your bootloop problem. Good luck!