I once tried to connect my Galaxy phone to my Samsung TV that is not connected to the local network. And the phone not only connected via bluetooth to share the video I was trying to project, it also silently passed my wifi credentials from the phone to the TV and connected itself to the internet.
Got rid of the Samsung phone soon after, and I won’t buy another Samsung TV either when this one dies.