Handling few pages with different layout

My app should have

  • registration page with layout 1
  • login page with layout 2
  • home page and other page with layout 3

For registration and login i manage with 2 different pages.

Starting from homepage i want a new layout that must be inherited from all the other pages.

Example: registration and login page does not have navbar, sidepanel etc, homepage and other page should have it. I want a common layout when the user is logged.

How is the best practice in this use case?
I exclude tabbed views because i don’t want a tabbar, i must change page programmatically.
Also replicate the layout in every single page is not feasible (and not adviced)
Also i exclude if condition on layout elements like navbar and other.

Any help or example?