I have a
- Lenovo TB-X605L - rc channel - updateted 28.09.2022 (2022-W39)
- Samsung TV set (can't find out the model, large screen, pretty old
Instructions:
Turn on TV 
The TV device has to be connected to your LAN (I guess. Didn't try without).
On the Tablet (language is German, therefore you will have to guess what I mean)
- turn on WLAN (BT not needed)
- go to Systemeinstellungen/Helligkeit & Anzeige
-- turn on Externer Bildschirm
-- go to Kabelloses Anzeigegerät
-- Samsung TV set should show -> tap it
-> UT appears on the TV screen in desktop mode
-> pressing "info" on TV remote control the TV says "Screen Mirroring"
-> Tablet display changes to kind of a touchpad with two buttons for left click and right click
-> Also tablet display shows a button for an onscreen keyboard which works when needed (e.g. Teleports)
In order to return to TV go to Systemeinstellungen/Helligkeit & Anzeige and turn off Externer Bildschirm.
tbh using the large TV screen as a display sucks because it's just too large. It's difficult to control the mouse pointer. May be changing the settings on the TV set or the tablet helps (I didn't try). Or maybe it's cool for watching youtube.
If you have a different Samsung device try it anyway. As far as I know Samsung has changed the OS on recent models but maybe it will work anyway.