The legal situation for LGBTQ+ travelers spans the full spectrum worldwide, so this is one topic where you must check your specific destination rather than rely on general impressions. Some countries recognize same-sex marriage and have anti-discrimination laws; others have no laws either way; a smaller group criminalizes same-sex activity, occasionally with severe penalties.
The tricky category is countries where laws exist on paper but are rarely enforced. Rare enforcement is not the same as no risk: laws can still be used during police encounters, blackmail attempts, or after a complaint, and dating apps have been used for entrapment in a few places. Sharing a hotel room as a same-sex couple is usually fine in practice, but in stricter countries it is wise to book twin beds and keep things low-key.
Your best sources are your own foreign ministry's travel advisory and established LGBTQ+ travel organizations that maintain country-by-country legal summaries. If the law is hostile, discretion in public and online is genuinely important, not just cautious advice.