Help me figure out the esp8266 module

how should it happen? Should the phone connect to the Wi-Fi module or the Wi-Fi module to the phone? Thank you in advance