Apple's AirPlay allows you to play content from an iPhone on your TV, but viewing your phone screen on a computer? That's a different story entirely. There are probably times when you don't want to be ...
You can turn on AirPlay to use on your Mac computer through the System Preferences app's "Displays" menu.