Public affection is where most LGBTQ+ travelers have to make judgment calls, because even in legally safe countries the social comfort level varies street by street. In cosmopolitan capitals holding hands may pass unnoticed; in conservative regions of the same country it can draw hostility. In countries where same-sex relations are criminalized, any visible affection is best avoided entirely.
A useful benchmark: watch what straight couples do in public. In many conservative cultures even they avoid kissing or hugging openly, and that tells you the general bar for everyone is low. Matching the local norm, whatever your orientation, keeps you invisible in the best sense.
Discreet habits that experienced travelers use include booking twin rooms in stricter countries, referring to a partner as a friend when talking to strangers, keeping profile photos and locations vague on apps, and saving affection for private spaces. None of this means hiding who you are permanently; it is situational awareness for the duration of a trip, and it works.