Preheat oven to 275.F. Make a bechamel sauce with the oil, flour, and milk, adding the garlic along with the flour. Add gruyere, parmesan, salt, and pepper stirring until melted. Remove from heat.
Fold spinach and artichokes into sauce. Pour into a baking dish and top with mozzarella. Bake until bubbling and dark golden brown on top.