you can type it into a terminal app (then type "su" in the first line) or use the free app "kernel adiutor" -> menu -> init.d (dont activate) -> add a new script "+" -> give a name and paste this:
One script version:
********************
#!/system/bin/sh
echo "deleting magisk properties"
resetprop --delete init.svc.magisk_pfs
resetprop --delete init.svc.magisk_pfsd
resetprop --delete init.svc.magisk_service
resetprop --delete persist.magisk.hide
resetprop --delete ro.magisk.disable
resetprop --delete magisk.version
resetprop --delete persist.magisk.busybox
resetprop --delete persist.magisk.hide
Another script version:
************************
#!/system/bin/sh
echo "deleting magisk properties"
getprop | grep magisk | cut -d'[' -f2 | cut -d']' -f1 | xargs -n1 resetprop --delete
Now you can click on the script and run the script.
Thats very simple.
After running the script, magisk will tell you, that it is not installed. But that doesnt matter.
The "magisk manager" cant recognize that it is installed, because we deleted the props.
Pokemon and all root apps will work stable.
If you reboot your phone, you have to run one of the above scripts again.
Some of the lines are only for "magisk v12", perhaps you will get an error in "magisk v13.x" for these specific lines because the props are not existing, but it doesnt matter.
For "magisk v13.2" you can download a modul, look into the modul list.
For some reason, you have to install "magisk v12" with "universal fix v2 beta4" as example miui-rom. So you cant use the modul from "magisk v13.2"
Regards Katerpanne