In public has 2 different meanings across 2 categories:
Adverb · Prep_phrase
in a manner accessible to or observable by the public; openly
"she admitted publicly to being a communist"
In view of other people, who may be strangers.