Footer flashes during route transition

The footer briefly flashes or collapses when switching routes, but only if the page is scrolled down to somewhere around the middle of a page. If I’m at the top of the page, the route transition works fine. This issue is more noticeable on high refresh rate monitors (e.g., 144-240+Hz). I’m not sure if this is a bug with the Nuxt layout or something else.

Here’s the layout:

<template>
  <div>
    <AppHeader />

    <div>
      <slot />
    </div>

    <AppFooter />
  </div>
</template>

Reproduction:
https://stackblitz.com/edit/nuxt-starter-pr83oe?file=app%2Fcomponents%2FAppHeader.vue

Looking for a possible solution.