If your wifi is on and connected, but you don't have an active Internet connection, this could be the cause as the phone might be reverting to Mobile Data. Make sure you have an Internet connection via wifi and turn off Mobile Data. What phone are you using?