LONDON — Visiting an outlet of the cosmetics retailer Lush is not for the faint of heart. Its stores are stocked with strongly scented ointments and brightly colored blocks of soap, and its advertisements are unapologetically strident when it comes to social issues.

Its new campaign in Britain, however, may have gone too far.

The company on Thursday took down storefront displays that had prompted controversy in recent days for being sharply critical of undercover police.

The posters and advertising alluded to public anger over the actions, over several years, of undercover detectives who used sexual relationships to infiltrate environmental and social justice advocacy groups. In 2015, the police formally apologized for the tactics.

One Lush shop, on Oxford Street in London’s commercial center, featured fake police tape with the words “Police have crossed the line” printed on it. Posters displayed a close-up of a man from the shoulders up, split down the middle with one half of him wearing a police uniform and the other a yellow T-shirt. Other signs read, “Spied on for taking a stand.”