You will need to have multiple sidebars in order to do this.
You can download a plugin called “Custom Sidebars”
https://wordpress.org/plugins/custom-sidebars/
This plugin allows you to have different sidebars for each page, therefore you can add different widgets for each page.
header#masthead {
display: none;
}
Add that to your CSS. Which will be located in your theme files, wp-content/themes/YOURTHEME/style.css or you could go to Appearance and Editor and then put into the style.css in there.