To my understanding, the way it all worked was the MCU as we know it, and the X-Men, and the F4 all existed before.
So the Iron Man movie all the way to Endgame already happened. X-Men First Class all the way to Logan already happened. Since it is an infinite multiverse. Then the Kangs/Alioth kills them all.
He Who Remains makes it so only the Avengers exist. So the events of the first Iron Man movie happen again, all the way up to the events of Endgame. This is the 2nd iteration of the current timeline.
After Loki Season 1, The X-Men and F4 come back to existence. So for a second time, we get X-Men First Class all the way until Logan.
Then in Loki Season 2, we see all the timelines explode/die. Loki seemingly resurrects them, meaning the events all happen a third time. So the avengers fight Loki in NYC for a third time, they get snapped by Thanos a third time, and Endgame happens again for a third time.
Based on what I understand, the Scott Summers we see in the movies dies many times. He either dies to Kang or Jean for the first time depending on if X3 or Kang’s invasion happens first, then dies to Charles between Days of Future Past Epilogue and Logan, then dies to Jean again after Loki brings them back to existence, then dies again to Charles, then another time when Loki has to blow up the Temporal Loom, then dies again to Jean, and then again to Charles. Making his death count 7 times.