The reality is that Trump voters were (are?) dumb as rocks and tricked by simple populist messaging. There was nothing harris could've done short of succumbing to populism herself, and cloaking her campaign in dishonesty, fear, and simpleton reasoning.
Maybe she shouldve done that, but you can see why she didn't.