Follow this guide to remove or replace the power button on an iPad mini 5 Wi-Fi.
Note that this guide is for replacing the power button cable and switch, not the external power button face.
'''For your safety, discharge the battery below 25% before disassembling your device.''' This reduces the risk of a dangerous thermal event if the battery is accidentally damaged during the repair. If your battery is swollen, [[What to do with a swollen battery|take appropriate precautions|new_window=true]].
Some photos in this guide are from a different model and may contain slight visual discrepancies, but they won't affect the guide procedure.