Male-to-male sexual contact, often arranged through dating apps, accounts for a sizeable share of new HIV cases.