You will have immigration at LHR only. All transfers will have transit security, and some may involve terminal changes (depending on airlines being flown).
It seems you fly LH for USA-FRA-LHR. While this is same airline you could still have a long walk or train ride between gates at FRA (or may get lucky and arrival & departure are in the same part of the large terminal complex).