GLASGOW — On Monday, President Trump will have a closely watched meeting with President Vladimir V. Putin of Russia, just days after the announcement that 12 Russian military intelligence officers had been indicted on charges of hacking Democratic organizations in an effort to affect the 2016 election.

But first, a bit of golf.

Mr. Trump was shielded from members of the American news media who traveled with him here to Trump Turnberry, the luxury Scottish resort where he is staying — but not from British journalists who captured protesters on a nearby beach shouting, “No Trump, no K.K.K., no racist U.S.A.” as he teed off on Saturday.

The group chanted across windswept grasslands and a protective buffer of dozens of law enforcement officials, some of them on horseback. According to footage captured by the BBC, the president appeared to wave at the crowd before turning back to his golf game.