Instead of repeating markup between Storybook's page wrapper and Next.js's layout.tsx, create a shared PageWrapper component that accepts whatever props are needed to handle different content between Storybook and Next.js.
Example: https://github.com/forumone/si-mysmithsonian/blob/main/source/04-templates/PageWrapper/PageWrapper.tsx