I use Simple Green wipes to clean my stove top daily. For the grates on my gas stove, the instructions said to put them in the dishwasher. Once a week they get a dishwasher bath.
Black glass or black cast iron? Black glass, I use a hot rag on top after spraying with a degreaser if its really dirty, wipe after 10 mins, and then use a clean microfiber cloth. I like the Maguires cooktop cleaner to finish and polish it. If there is stuck on grease I use a single edge razor blade to remove any bits from the glass.
Black cast iron, I use Williams Stove Polish, its graphite which I find better than other polishes for cast iron. You get it on Amazon or an old time hardware store might have it. I use a 3M pad to work it in. And if there are rust spots, I use 0000 steel wool to abrade the rust off
this video shows 3 ways to clean a stove https://www.charlestoncrafted.com/three-ways-clean-glass-electric-stove/