Using phone with broken screen

Probably see a heap of other topics on those e.g. is the depicted pin what you are talking about?
Disassembled my Librem 5 and this fell out
Camera kill switch not working? - #25 by ChriChri

Good question. Beyond my expertise but I think the touch input is separate from the display. So it may be possible to disable (disconnect?) them independently. Probably best to ask Purism Support about that.