Why if the popover action is executed by the item selected with the circle in the image, the popover is shown in the middle of the screen?

The examples show that the popover appears pointing to the item that triggered it, but in my case it always appears in the middle of the screen, I don’t understand why.

Here is an example of how it is currently displayed.

This is my code:

  public async showActionsProfilePhoto() {
    const popover = await this.popoverController.create({
      component: OptionsHeaderComponent,
    return await popover.present();
<ion-avatar class="photo-header" (click)="showActionsProfilePhoto()">
      <img [src]="photoUser" />

Apologies if you’ve already read this.

Thank you, I had not realized that.