It’s not necessary to use a phone for 2FA apps (although it’s generally recommended to have 2FA on a separate device), you can find open-source solutions for both phones, desktop, and browser for generating the codes. It’s an open-source algorithm that anyone can implement.