So when I tap my phone near the camera and the back I can hear a rattle from the camera. Even when I tap the button part of the phone at the back I can hear a rattle from the camera, is that normal?
also if you look at the bottom of this page . . . ..
When the camera is not powered the lenses float and make noise. When powered the floating lenses are held in place to focus and will not rattle while powered.
Your post was not similar, it is almost the exact same question.
Just try a search. Much has been written on the camera lens rattle. You worry too much about something being wrong with your device or you are just seeking attention.