Connecting to xfinitywifi on iPhone X

Sometimes I see that my phone connects in settings, but WiFi icon is not shown next to the battery icon (see attached screenshot). When it’s in this state, the actual connection is cellular. Does anyone else experience that? Is there a solution to this?