Weird styling issue after logging into external okta portal & redirect to home page

I’m using Angular 7, styling with material, and am following this guide: I have everything wired correctly, and it works, but I’m having one issue.

  • I am not logged in, and I’m redirected to my
  • I enter my credentials, and then I’m redirected to my callback url, https://localhost:4200/implicit/callback#id_token=...
  • which then sends me back to my home page of my app: https://localhost:4200/home, but then I have a really weird styling issues. The only thing that fixes it is a refresh of the page.

How do I prevent the weird styling issue? Or is there a work-around? Like refreshing the page programatically? Thanks