In the majority of situations this is simple to do by detaching the flex cable to the main board.If you do not test before fitting and later discover a fault it will be difficult to remove without damaging it.
eBay
Replace a cracked or scratched front glass panel or malfunctioning LCD display on your iPhone XR. iPhone XR Screen Assembly. All iPhone XR. Back Panel already Installed. Includes Screen Adhesive. Screen Adhesive.
eBay
Apple iPhone 5 charging socket dock connector charging port microphone audio socket flex white.
eBay
Apple iPhone 5s charging socket dock connector microphone audio connection socket flex white.
eBay
Apple iPhone 5s.
eBay
eBay
Replace a cracked glass panel or malfunctioning OLED display on your iPhone XS with this cheaper alternative to the OLED panel. iPhone XS Screen Assembly. Includes Screen Adhesive. Screen Adhesive. It may be cheaper but the quality is not cheap and still performs brilliantly but at a lower cost to you.
eBay
Replace a cracked glass panel or malfunctioning OLED display on your iPhone X with this cheaper alternative to the OLED panel. iPhone X Screen Assembly. All iPhone X. Includes Screen Adhesive. Screen Adhesive.
eBay