Flash patched boot image:

How to Root XIAOMI Mi TV 4A Pro 32" device? - HardReset.info

: Navigate to Settings > Device Preferences > Developer Options and toggle on USB Debugging and OEM Unlocking .

Unlocking the bootloader is a mandatory prerequisite for flashing custom recovery files.

Install the Magisk APK on your TV (you can side-load it via a USB drive).