The co-leader of the Scottish Greens says transphobia is being ‘weaponised’ by politicians and the media.