Preheat oven to 400°F and grease a 9×13-inch casserole dish.
In a large cast-iron skillet, melt 2 tablespoons butter over medium-high heat.
Add mushrooms, onion, and garlic.
Sauté for 8–10 minutes, until mushrooms are very tender and onions are translucent.
Remove from the skillet and set aside.
Add the remaining 2 tablespoons of butter to the same skillet.
Sear chicken for 2–3 minutes per side, just until lightly golden.
Do not cook through.
Transfer chicken to the prepared casserole dish.
Return the mushroom mixture to the skillet.
Add chicken broth, heavy cream, salt, and pepper.
Cook over medium heat for 5 minutes, scraping the bottom of the skillet while as you stir
Turn off the heat. Sprinkle xanthan gum evenly over the sauce, if using. Let the sauce thicken for 5–10 minutes.
Spoon sauce evenly over the chicken.
Sprinkle the Parmesan cheese over the chicken, then top with mozzarella.
Finish with Italian seasoning.
Cover loosely with foil and bake for 10 minutes.
Remove foil and continue baking for 8–10 minutes, or until cheese is melted and bubbly and chicken reaches 165°F.
For a golden top, move the dish to the top rack and broil for 1–2 minutes, watching closely.
Remove from oven and let rest 5 minutes before serving.