The actor and performance artist Shia LaBeouf was arrested early Thursday morning on misdemeanor assault and harassment charges while protesting President Trump at a livestream art installation in Queens.

In videos online, Mr. LaBeouf — who has a history of provocative behavior and a record of arrests for minor offenses — expresses outrage, evidently aimed at Mr. Trump, and uses expletive-laden language to ask how the public can make it normal “to be a Nazi out here.”

In one video, a small gathering of fellow protesters chants “He will not divide us” as the bearded Mr. LaBeouf speaks. A police officer approaches, and Mr. LaBeouf appears to get into a verbal altercation with him before the officer places him in handcuffs and escorts him out of the camera’s view.