As one example, here is a listing of results by district for 2020. You can get any other year too (back to 1960):
2020 presidential election results by congressional district
This appears to be missing 7 congressional districts as the totals do not add up to 435. Even if these missing congressional district went for Trump, he would have lost 272 to 265.
But, the election would have played out a lot differently with different math in play.
Looking at the cong. list, it is missing the seven states with only one congressperson.
Those 7 “districts” are the 7 states which do not have districts because they only have 1 representative. So add MT, ND, SD, AK and WY to the number of Republican districts and add DE and VT to the Rats. Also DC.