I'm using screen mirroring for such things. But I have a Samsung TV and a smartphone from samsung and they're both having this feature and they're compatible.
I don't know a lot about technology but maybe this will help you
As mentioned, if you have a samsung phone just use the screen mirroring feature. If your phone is not samsung try the app called allconnect. It claims to do what you need but i have not tried it since i just use the screen mirroring.