Preheat oven to 375°F (190°C) and grease a baking dish.
Melt butter in a saucepan. Add minced garlic and flour, then whisk for approximately one minute.
Gradually whisk in heavy cream and whole milk. Cook until slightly thickened. Stir in 1 cup cheddar cheese, salt, black pepper, and dried thyme.
Arrange half of the sliced potatoes in the prepared baking dish. Pour half of the creamy sauce over them. Repeat with the remaining potatoes and sauce.
Sprinkle the remaining cheddar cheese, mozzarella, and Parmesan over the potatoes.
Cover the baking dish tightly with foil and bake for 45 minutes. Remove the foil and bake for another 15–20 minutes until the potatoes are tender and the cheese is golden and bubbly.
Let the casserole rest for 10 minutes. Garnish with freshly chopped parsley and serve warm.