Drain corn thoroughly if frozen or canned. Pat dry with paper towels
Melt butter in large skillet over medium heat
Add corn, cook 3-4 minutes stirring occasionally until heated and beginning to caramelize
Sprinkle sugar over corn, stir and cook 2-3 minutes until sugar melts
Add mayo, stir constantly until melted and coating corn
Pour in cream or milk, stir well, simmer 2-3 minutes on medium-low
Add salt and pepper, stir to combine
Add shredded mozzarella, stir gently until cheese melts and creates creamy sauce
Optional: transfer to oven-safe dish, top with extra cheese, broil 2-3 minutes until golden
Garnish with green onions and parsley
Serve immediately while hot