Arrange an even layer of potatoes to cover the bottom of the pan, slightly overlapping the slices. Sprinkle with salt and pepper and a layer of onions and cheese. Repeat with 2 more layers ending with potatoes. Top with salt and pepper.
Cover the pan with a lid or foil and cook on the stovetop over medium heat for 30 minutes.
Preheat the broiler, then broil until the top is browned.