Neither bug nor feature. It’s a hardware issue. Take it to an Apple Store or Apple Authorized Service Provider (AASP) and have the issue diagnosed, before the issue gets worse:
- Genius Bar Reservations: Genius Bar Reservation and Apple Support Options
- Locate Apple Stores & AASP’s: Find a Reseller
- iPhone Service & Repair: iPhone Repair and Service – Apple Support