Preheat the oven to 350 degrees F (175 degrees C). Place garlic in a small baking dish.
Bake in the preheated oven until soft, 20 to 30 minutes. Allow to cool enough to handle, then squeeze out softened garlic cloves from skins into a large bowl.
Add artichoke hearts, spinach, Alfredo-style pasta sauce, mozzarella cheese, cream cheese, and Parmesan cheese to garlic cloves in the bowl; mix until well combined. Spread into an 8x8-inch baking dish.
Bake in the preheated oven until cheeses are melted and bubbly, about 30 minutes.
Serve warm.
