I’ve heard mint is very invasive and if you can do it, container gardening it is the best.
Yes, my husband tells me that all the time, having seen its invasiveness.
But I’ve only got a balcony right now, so it will be in containers.
I’ve seen where you can sink sheets of metal into the ground, to make a bed; but I doubt that really contains it permanently ;-)