you cant do this without unlocking your bootloader and by doing that you will void your warranty, and posts like this here

are wrong the tool by Xiaomi or by Huawei warns owners about that before proceeding to unlock the bootloader
but if you could unlock the bootloader why not install TWRP and MAGISK?
just root it, i spoofed for 1y + without getting banned
if you don't like your device being rooted unroot it by doing a complete uninstall, just don't try to lock your bootloader again with a custom recovery, it will brick your device