Simply create a new Header or Footer global section and assign it on those specific pages in their page settings.
Here’s a short video recording https://d.pr/v/2hGlUy how to do it.