Preheat the oven to 375°F (190°C) and grease a 9-inch pie dish, cast-iron skillet, or small baking dish with butter.
Squeeze the thawed spinach in a clean kitchen towel over the sink until no more moisture can be extracted.
Beat softened cream cheese, sour cream, mayonnaise, minced garlic, salt, black pepper, and red pepper flakes in a large bowl until smooth and fluffy.
Stir in grated Parmesan cheese and 1 cup of the shredded mozzarella cheese.
Fold in the squeezed dry spinach and chopped artichoke hearts until evenly distributed.
Spread the mixture evenly into the prepared baking dish.
Scatter remaining 1/2 cup shredded mozzarella cheese evenly over the top.
Bake for 22 to 25 minutes until the dip is hot and bubbling and the cheese topping turns lightly golden brown.
Rest for 5 minutes before serving warm with sliced baguettes or tortilla chips.