Melt butter, onion and garlic over medium heat. Cook until onion is softened, about 3 minutes. Add flour and cook for 1-2 minutes.
Reduce heat to low. Combine milk and broth. Add a small amount at a time whisking to thicken. The mixture will become very thick, continue adding a little bit of liquid at a time whisking until smooth.
Once all of the liquid has been added, bring to a boil over medium heat while continuing to whisk. Stir in salt and pepper and let boil 1 minute.
Grease a 4" x 6" baking dish or one that will fit in your air fryer. Place ⅓ of the potatoes in the bottom and season with salt and pepper. Pour ⅓ of the cream sauce over top.
Repeat layers ending with cream sauce. Cover with tin foil and bake for 15 minutes at 350°F on BAKE
Uncover and bake for an additional 5-10 minutes or until golden brown and potatoes are tender.