Here's how to remove the display for the Surface Pro 4. This is the first step to replacement and to many other repairs on this device.
The Surface Pro 4 has two versions with displays from different manufacturers and different connectors. Version 1.0 has a Samsung display and a 25 pin connector while version 2.0 has an LG display and a 32 pin connector. The two types are not cross compatible.
It is unclear if there is a way to determine which display you have without disassembling your device. Look closely at the connector on your old display before purchasing a replacement.