Ion menu button error

I am developing an app using Ionic 5, Angular, and Cordova.
I put the ion menu button on the top left of the home screen, but when I enter another screen and return to the home screen, the button moves slightly down and then up again.
This phenomenon only appears on ios

<ion-header mode="md" class="main-header">
    <div class="header-inner">
      <ion-title><img src="assets/images/header-logo-linkon.svg" width="25%"></ion-title>

z-index: 10;