title: Google Identity - sign In with google button not visible when go to other screen and comeback
body: <p>I am trying to integrate the Google SSO using the Google Identity API's for the Angular 14 application.</p>
  <p>The problem I am facing is, I can see the Sign In with Google button when I first come into Login screen. But if I go to other screen then do logout and when I am back to Login screen, the Sign In with google button is no more visible and I have to force refresh (<kbd>Ctrl+Shift+R</kbd>) to make it visible.</p>
  <p>I have already gone through <a href="https://stackoverflow.com/questions/70993933/why-does-the-sign-in-with-google-button-disappear-after-i-render-it-the-second-t">Why does the Sign In With Google button disappear after I render it the second time?</a>
  but it is unclear how to make feasible in my case.</p>
  <p>As I can see an Iframe will be rendered during the 1st time and if I come back again to login page from other page I can not see the Iframe and the SignIn button is not visible.</p>
  <p>Here is the code to load the sign in button from angular component</p>
  <pre><code>ngOnInit() {
      // @ts-ignore
      window.onGoogleLibraryLoad = () =&gt; {
        // @ts-ignore
        window.google.accounts.id.disableAutoSelect();
      };
  
      this.loadGoogleSSOScript('2.apps.googleusercontent.com');
    }
  
    loadGoogleSSOScript(clientId: string) {
      // @ts-ignore
      window.onGoogleLibraryLoad = () =&gt; {
        // @ts-ignore
        google.accounts.id.initialize({
          client_id: clientId,
          itp_support: true,
          callback: this.handleCallback.bind(this),
        });
        // @ts-ignore
        google.accounts.id.renderButton(
          // @ts-ignore
          document.getElementById('g_id_onload'),
          { theme: 'filled_blue', size: 'medium', width: '200px' }
        );
        // @ts-ignore
        google.accounts.id.prompt(); // also display the  dialog
      };
    }
  </code></pre>
  <p>Here is the link for <a href="https://stackblitz.com/edit/angular-ivy-xucapf" rel="nofollow noreferrer">Stackblitz</a> which has full code.</p>
  <p>How to solve this issue?</p>