You could use grouping so that feature 1 and feature 2 have their own layout while the rest of the application uses the root layout
https://dev.to/mayank_tamrkar/can-we-skip-parent-layout-in-a-nested-page-in-app-dir-3dgp