If the phone and TV are the same manufacturer, a newer phone may be able to mirror to the TV, but that's on a manufacturer-by-manufacturer and model-by-model thing. Mirroring isn't an industry standard.
If you want something almost universal, see if Google Home will run on the phone. If it will, you can connect a Chromecast device to the TV and mirror.