Serious question: what if you don't have a mobile phone?
Sign in using backup codes: https://support.google.com/accounts/answer/1187538?hl=en
The algorithm is fairly straightforward and does not require internet connectivity (through mathematical magic).