Popover width auto

I need to use a responsive popover, that is a popover with width: auto.

I put this CSS rule:

ion-popover.popover-width-auto {
	--width: auto;

it works, but my popover is not centered in the middle of the page:

What should I do?

I would not use popover for this then. I’d suggest using a modal instead.