I resolved this issue by removing Google reCAPTCHA and using the RecaptchaVerifier widget from the firebase_auth package. I placed the widget inside a container with position: absolute to ensure it appears on top of everything else. This approach worked perfectly for me.