Preheat oven to 400°F (200°C). Grease a 9x13-inch baking dish with nonstick cooking spray.
Brown ground beef and diced onion in a large skillet over medium-high heat for 7 minutes; drain excess grease.
Stir barbecue sauce, ketchup, yellow mustard, salt, and black pepper into ground beef until well combined.
Spread meat mixture evenly into the bottom of the prepared baking dish.
Sprinkle 1 cup of shredded cheddar cheese and crumbled bacon over the warm meat layer.
Arrange frozen tater tots in tight, neat rows over the entire surface.
Bake uncovered for 30 minutes until tater tots turn golden brown and crisp; scatter remaining cheese on top and bake 3 minutes to melt.