Hi, friend!
No phone model can unlock the Wi-Fi password due to the Wi-Fi protection protocol.
You can use a third-party app to connect to wifi.
You may see a lot about unlocking a Wi-Fi password, but the actual principle is that the user who connects to the Wi-Fi shares the password to a third-party app.
Thanks!