This can be done by using the Repair Assistant. This is for iPhone 15 Pro. Not iPhone 15 Pro Max.
eBay