There are some apps (like video player) that if you open it, the screen won't lock. Because it's hard to figure out which screen wouldn't lock, I enable the Accessibility feature which has a lock button in it. I also put in a "Lock" button in the same location on all my home screens. I lock the phone manually except on the screen I know for sure the phone will lock automatically.