A man and his mother were doing yard work in California when a woman unleashed a diatribe against Mexicans, and — invoking President Trump — called them rapists, animals and drug dealers.

The encounter was captured in a video that was posted on Twitter early Monday morning and had been viewed more than two million times by night.

In the video, which lasts about 35 seconds, the man — identified as Esteban Guzman — went back and forth with the unidentified woman, who at one point appeared to make a vulgar gesture with her middle finger.

“Why do you hate us?” Mr. Guzman asked.

“Because you’re Mexicans,” the woman said.

Mr. Guzman told the woman that “we’re honest people.” She laughed and countered with her own impressions: “Rapists. Animals. Drug dealers.” She mentioned the president, who has made similar remarks about undocumented immigrants coming across the border, often from Mexico.