Changing ESP8266 mini WiFI channel

I use my ESP8266 mini as an IoT device whuch connected to internet via a local WiFi network. It is configured as Station Mode. The device is connected smoothly to the local network and from time to time it scans its nework (SSID) to identify the best channel to connect with. Scaning work perfectly but setting an alternative (better) does not work for me. I have tried WiFi.channel(newChannel) as well as wifi_set_channel(newChannel) but in vain. It always remains in its self selection... Any ideas What should I do?

It's not clear to me what are you trying to do.
Multiple access points with same SSID in your network?
Anyway syntax for wifi in station mode is:

WiFi.begin(ssid, password, channel, bssid, connect)

wifi communication supports 14 channels, 1 to 14. Most used channels are 1, 6, and 11. when a any wifi device / esp8266 is connected into a certain SSID, it may select the best channel to communicate over that network(less noisy, less congested, better rf signal, etc.).
when I uses WiFi.channel(newChannel) or WiFi.begin(ssid, password, newChannel), something 'happens' within the radio controller but eventually it returns to the one it selected during setup() proccess. this can be seen by Serial.println(WiFi.status()) and
Serial.println(WiFi.channel()).
Any ideas?

Your access point (router) sets the channel. Esp has to live with that. The channel parameter is usable when you have repeater/extender network where you have multiple access points with same SSID.

Yes you are right. I have learnt this by the hard way. However, found the way to modify a channel. Indeed I could see that the channel was Changed but immediately the Esp8266 reset its wifi settings to the right channel.