In a large bowl, combine the cream cheese, sour cream, mayonnaise, garlic, spinach, mozzarella, half of the Parmesan and the artichokes, if using. Season with salt, pepper and red pepper flakes.
In a small bowl, mix the remaining Parmesan with the panko. Set aside.
Oven: Heat the oven to 375°F. Spread the dip in a greased small baking dish and bake for 20 to 25 minutes, until bubbling.
Instant Pot: Add 1 cup of water to the pot. Spread the dip in a greased 7-inch oven-safe dish, cover tightly with foil and place on the trivet. Cook on High Pressure for 10 minutes, then quick release.
Sprinkle the Parmesan and panko topping evenly over the hot dip.
Broil for 3 to 5 minutes, until golden brown and bubbly. Or use an Instant Pot air fryer lid for 2 to 3 minutes.
Rest for 5 minutes and serve hot with chips, pita or crostini.