Could you create a way to anchor boxes or modules on the edge of the screen? That would help with self-made headers or footers, for example.
Alternatively, you may be able to create a building block for a header that differs from the one displayed first while scrolling down.