The safest option is probably to remove the battery and run the phone from a (well defined/build) external power source, e.g. like this: https://yaky.dev/2022-09-06-smartphone-without-battery/
Not all phones work without a battery in the case.
Not all phones work without a battery in the case.