It is possible to pay for the upgrade onboard, but that is subject to seats being available and would not be able to be done until the a/c is airborne.
IIRC it costs about £400 to go from Y-W by paying to u/g onboard.
As has been said, ask at the ticket desk on the day.