Cell phone have wifi and cell networks. Move your finger down from the top of your phone screen to see settings.
You really need to read the manual to get familiar with your phone.
View attachment 303196
View attachment 303197
View attachment 303198
The first image shows both wifi and cell data ON. (I've obscured my home wifi network name).
The second image shows wifi off and cell data on.
The third shows wifi on and cell data off. (Again I've obscured my home wifi network name.)
A simple tap on any of the items turns each on or off. Blue indicates on and gray off.
You can long press an item and move it to a different location; I've rearranged for an order that suits me.
When wifi is on and there wifi in range, you get available networks. You don't have to tell it to do anything. Tap on the network icon