Preheat your oven to 375°F to get it ready for the baking stage.
Heat olive oil in a skillet over medium heat.
Sauté minced garlic and chopped shallot until fragrant, about 2 minutes.
Add fresh spinach to the skillet.
Cook until wilted, then transfer to a bowl.
Be sure to squeeze out excess liquid.
Combine spinach, artichoke hearts, cream cheese, sour cream, mayonnaise, Parmesan, and mozzarella in a mixing bowl.
Mix until well combined.
Season the mixture with salt and pepper, then transfer it to a baking dish.
Bake in the preheated oven for 20-25 minutes, or until the top is golden and edges are bubbling.