Authenticator apps work much the same way as SMS 2FA does, but use an app on your phone to send you the code instead of sending over a text message. This means that the code cannot be intercepted remotely by hackign your sim card. The hacker would need your physical phone to get the code.