You can select sidebar layout for different pages such as post page, archive page, default sidebar.
Please follow the below steps to select the sidebar for different pages of your website.
- Log in to the WordPress Admin Panel
- Go to Appearance> Customize> Layout Settings> General Sidebar Layout
- Select the Sidebar Layout for Page, Post, and Default Sidebar layout.
- Click on Publish