Ionic 5 - vertical scroll not working for normal web page

I am making a web app with Ionic (at least some will be for web only).
However I can’t seem to get the page to scroll vertically. The basic html example is below. This works fine in a raw Angular project but is always squashed into a single page in Ionic with no scrolling.

<div style="width: 100px; height: 2000px; background-color: red;">test</div>
<div>test2</div>

Turns out it needs to be in a element in order to scroll.