Trump won most of the in person voting, but lost the mail-in voting bigly. Most states can't count the mail ins until the same day is tabulated, that's all that happened.
Thank the moron postmaster general, removing mailboxes and sorting machines, and COVID, for driving more people to mail-in voting.