iPad user since original, and iPhone users since 3G. Most of my phones get passed from me to wife, and most of those from her to my mother so typically we use a phone for ~4 years; I've personally had 8 iPhones and we have, on occasion, purchased new for wife and/or mom so around a dozen total. I've had 6 or 7 iPad too, currently a 12.9" M1 and an iPad mini 6. I've never experienced a loose button or switch across any of them. I'd get it into an Apple Store for the Genius Bar to look at it.
I'm always amazed and frankly baffled when people say that every iPhone & iPad they've ever owned has been perfect in every way. My own experience has been entirely different and I'm absolutely at the point where I fully expect to get faulty devices when I buy Apple products.
They haven't all been perfect - the iPhone 7 Plus got a flaky display after a couple of years, and one of the iPhone X's would either go unresponsive or kernel panic every day or two, again after about 2 years of use. I had a new battery put in the iPhone 6 or 6S, don't remember which. But I've never had a problem "out of the box." And, apropos of nothing - I've never had a hardware issue with an iPad. My original mini went to my sister after 5 years, and she used it another 3 before trading it in. My Air 1 got traded toward a mini 4, which got traded toward the current iPad Pro 12.9 M1. The OG iPad got left in the seat pocket on an airline flight, in the days before Activation Lock.