Place a cast-iron skillet on medium heat and add the drained corn kernels, butter, mayonnaise, and sugar. Stir until the butter has melted and combined with the mayonnaise.
Season the mixture with salt and pepper according to your taste preference.
As soon as the mixture starts bubbling, sprinkle the grated mozzarella cheese on top.
Place the skillet under the low broiler in the oven and cook until the cheese turns golden brown.
Garnish with thinly sliced green onions before serving. Enjoy this mouthwatering Corn Cheese dish!