Follow this guide to open up the Pixel XL to remove and replace its battery. If your battery is swollen, [[What to do with a swollen battery|take appropriate precautions|new_window=true]].
'''Before disassembling your phone, discharge the battery below 25%.''' The battery can catch fire and/or explode if accidentally punctured, but the chances of that happening are much lower if discharged.
'''The Pixel XL’s unreinforced display panel is fragile''' and is attached to the frame with strong adhesive, making repairs difficult. There is a considerable chance of breaking the display, especially if it already has micro-fractures. Be sure to apply plenty of heat and be extremely careful during the prying stage.