Internet data is on, but can't access the internet? Try this

If data is on, but can’t access the internet on your mobile phone, be it android or iPhone, even when it is connected to wifi network, try and check your date and time settings.

Atimes, when the date/time is in the past and not correct, internet won’t connect on your device