Preheat the oven to 350°F (175°C) and grease a casserole dish with nonstick spray; set aside.
Place the peeled, cubed potatoes in a large stockpot and cover with cold water by about 1 inch.
Bring the water to a boil over medium-high heat, then cook until the potatoes are fork-tender, about 10–15 minutes.
Drain the potatoes and mash them with the butter until mostly smooth, then transfer to a mixing bowl.
Thoroughly squeeze any excess liquid from the thawed spinach, then add the drained spinach to the mashed potatoes.
Stir in the sour cream, onion powder, salt, dill weed, and black pepper until the mixture is evenly combined.
Spread the spinach mashed potatoes evenly into the prepared casserole dish without compacting them.
Sprinkle the shredded mozzarella evenly over the top.
Bake for about 20 minutes, or until the center is hot and the cheese is melted and lightly browned.