First you take a bunch of pictures. It works best if you move your feet and camera as little as possible. In this case I took 25 photos with my A7 on a family trip to Bern.
After a bit of waiting you get a panorama.
You could easily fix the edges in Affinity. But I‘m much faster with Pixelmator.
To add some final touches I use Lightroom CC. I know it‘s a bit overkill.
Et voila: The final result. All done on a train on an iPad while holding a more or less sleeping baby.