Download the for your exact phone model and build number.
Copy the resulting magisk_patched.img back to your computer.
Open Magisk, tap , choose "Select and Patch a File," and select your boot.img .
Rooting almost always voids your manufacturer's warranty.
To give you the exact steps for your device, please tell me: