Currently We have created with a single template in AEM eg template A. The header for these pages is authored using an Experience Fragment, which is then included in the template's structure.
Now I have requirement where we need to render different version of header based on a user logged in logged out state .So if user is non-logged show default_header else if user is logged in render the slim_header in the existing template (Template A).
.
How can I achieve this for just the 3-4 specific pages? What is the best approach to implement this in AEM?
Thanks!