If you want it to stay put instead of pulling itself out as you rotate it...
Get some of that BLU TACK clay/rubber stuff. It is for sticking up posters...
Anyway, knead a small ball. like a 1/2 inch ball of it stretching it folding it until it is nice and sticky.
The roll it out into a worm like tube 2" long.
Wrap the tube of goo around the base of the plug with the plug IN the socket, making a wrap touching the TV and the plug equally. Press it down firmly on all sides.
The goo will come away if you pull the plug. but will be sticking to stuff too. Use the ball of goo you can pull away to 'pick up' the little bits stuck all over the plug and the TV socket
You can re-use the ball of blu tack over and over.
The stuff come in different brand names too.
I use it for a lot of my AC plugs and have reused it for YEARS.
If this is too gooey..
Use a wire clip and screw the cord to the TV at some screw already on the TV.
The fastener I would get is a tube open to allow a wire in, with a set of tabs with screw holes to clamp the held wire in
There are also sticky types of those, but they often fail to grip well.