Universal scaling effects of a temperature gradient at first-order transitions