Preheat oven to 375°F (190°C); grease a 9x13-inch casserole dish with nonstick cooking spray.
In a large skillet, brown ground beef and diced onion over medium heat until meat is no longer pink; drain fat.
Stir minced garlic, salt, and black pepper into ground beef; cook for 1 minute, then remove from heat.
Whisk condensed cheddar cheese soup and whole milk in a bowl until smooth.
Arrange half of sliced potatoes in bottom of prepared casserole dish.
Spread seasoned ground beef evenly over potato layer; sprinkle with 1 cup shredded cheddar cheese.
Layer remaining sliced potatoes on top; pour soup mixture evenly over casserole.
Cover tightly with aluminum foil; bake for 45 minutes until potatoes are tender when pierced with a fork.
Uncover, sprinkle remaining 1 cup cheddar cheese on top, and bake uncovered for 10 minutes until cheese is bubbly and golden brown.
Let rest for 10 minutes before slicing and serving.