Preheat the oven to 375°F. Grease a 9x13 inch baking dish and set aside.
Scrub 4 pounds (1.81 kg) Yukon Gold Potatoes and slice into ⅛-inch rounds using a mandoline or sharp knife. Place the sliced potatoes in a bowl of cold water to prevent browning while you make the sauce. Set aside.
Melt 4 tablespoons (56 g) unsalted butter in a large skillet or braising pan over medium heat. Add 1 cup (160 g) finely diced yellow onion and cook for 5 to 6 minutes, stirring occasionally, until the onions are soft, translucent, and starting to turn slightly golden at the edges.
Add 3 garlic cloves and cook for 1 more minute, stirring frequently so the garlic doesn't burn.
Add ¼ cup (35 g) gluten-free flour blend and stir constantly for 2 to 3 minutes. The mixture will look dry and paste-like at first and then turn a light golden color. That color change means the raw flour taste has cooked out.
Reduce heat to low. Combine 1 cup (240 g) gluten-free chicken broth and 2 cups (480 g) heavy cream in a measuring cup.
Slowly pour the cream mixture into the roux about ¼ cup at a time, whisking constantly after each addition. Adding the liquid gradually prevents lumps. Continue until all the liquid is incorporated and the sauce is smooth and thick.
Add ½ tablespoon kosher salt, ¾ teaspoon black pepper, and ¼ teaspoon ground nutmeg. Whisk to combine. Taste and adjust seasoning if needed, keeping in mind the cheese will add more saltiness.
Bring to a low boil, then remove from heat.
Drain the potatoes and pat dry. Layer half the potatoes in an even, slightly overlapping layer in the prepared baking dish, making sure to cover the edges and corners of the pan.
Spread half the cream sauce evenly over the potatoes, then sprinkle with 1 cup (113.5 g) white cheddar cheese and 0.25 cup (25 g) parmesan cheese, reserving the other half for the next layer.
Repeat with the remaining potatoes, cream sauce, 1 cup (113.5 g) white cheddar cheese, and 0.25 cup (25 g) parmesan cheese.
Cover tightly with aluminum foil and bake at 375°F for 35 minutes. Remove the foil and bake for an additional 20-30 minutes until the top is golden brown, the potatoes are fork tender, and the sauce is bubbling. If the top is browning too quickly before the potatoes are done, tent loosely with foil and continue baking.
Remove from the oven and let rest for at least 5 minutes before serving to allow the sauce to thicken slightly. Garnish with 1 tablespoon chives or fresh parsley, if desired.