Preheat the oven to 375°F (190°C) and lightly grease a 1-quart baking dish.
Squeeze the thawed spinach firmly over the sink until very little liquid comes out, then break it into small pieces.
Stir the cream cheese, sour cream, and mayonnaise in a large bowl until smooth.
Fold in the spinach, artichoke hearts, garlic, salt, pepper, 3/4 cup mozzarella, and 1/4 cup Parmesan until evenly combined.
Spread the mixture in the baking dish and sprinkle the remaining 1/4 cup mozzarella and 1/4 cup Parmesan over the top.
Bake for 25 to 30 minutes, until the dip is bubbling at the edges and the cheese on top is lightly golden.
Rest the dip for 5 minutes before serving, when the surface will still be hot and the center creamy.