There is no app, it's built in to iOS depending on which version you have. you will need a dock connector or lightning connector to digital video adapter for an HDTV. That will cost you $39 but will give you full 1080p/720p HD output.
The other solution that's wireless is an Apple TV, which of course is $99 new.