Heat the olive oil in a frying pan over medium heat. Add chopped garlic and fry for 2 minutes. Increase heat to medium-high, add chopped spinach and cook uncovered until completely cooked, stirring occasionally.
Place spinach in colander and squeeze out all of the excess liquid in the spinach with the back of a spoon. Return the spinach to the pan. Add chopped artichoke and cook for 2-3 minutes.
Preheat oven to 400 degrees F. Meanwhile make the white sauce. Remove from the heat. Add the spinach-artichoke mixture and shredded mozzarella to white sauce and mix well. Season with salt and pepper.
Transfer to a baking dish. Place the baking dish on the middle rack of the oven and bake for 5-10 minutes. Serve with pita bread triangles or tortillas.