I think Porthoz has covered it pretty well. I haven't been in Europe for ages. My phone allows for esims so I just buy something from Ubigi that will cover the countries I'm in. I imagine in Europe there are roaming agreements.
If your phone supports esims then it's incredibly easy to switch...