I have a broken computer screen. Can I use an iPhone to cast the display even if it requires cables?

I have a broken computer screen. Can I use an iPhone to cast the display even if it requires cables?

Yes