If you can get good focus with the camera on a tripod, it isn't your focus screen.

That the problem is occasional and hand held suggests that you or the subject simply moved a bit. This is normal, not a gear issue.