Jeremy Corbyn said he would tackle Donald Trump on environmental issues if he was the Prime Minister attending the G20 summit.