Preheat your oven to 375°F (190°C).
Heat olive oil in a large skillet over medium heat. Add garlic and cook until fragrant.
Add fresh spinach and cook until wilted. Remove from heat and stir in chopped artichokes.
In a large mixing bowl, combine cream cheese, sour cream, mayonnaise, salt, black pepper, and red pepper flakes. Mix until smooth.
Fold in the spinach and artichoke mixture along with Parmesan and half of the mozzarella.
Transfer to a baking dish and sprinkle the remaining mozzarella on top.
Bake for 20–25 minutes, or until hot and bubbly with a golden top.
Serve warm with chips, bread, or veggie sticks.