In the below example 'Full' Upright mode was used and causing diverging verticals in the first example and converging verticals in the 2nd example. The 'Vertical' mode produces similar results so that appears to be the cause. There have been numerous complaints concerning this issue:
For now the best suggestion is to use the Guided Upright tool as outlined here:
Both shot with Canon 16-35mm F4 IS at 16mm
In an ideal world, raws and corresponding TIFFs (or other derived files) would behave identically with respect to Upright. However, Upright (being an automatic method, similar to Auto Tone, Auto WB, etc.) is very sensitive to the exact pixel values of the image, and the pixel values of raws are always going to be different from the pixel values of a non-raw format such as a TIFF/JPEG. Thus, Upright results between the two may be different – sometimes only subtly different, sometimes more dramatically different.
This is a design limitation (of all automatic methods, including Upright) for which I do not know of any solution.
I forgot to add that you will also need to click on the Transform panel 'Update' button if the Lens Profile 'Distortion' slider is changed from its default setting, which is normally 100 unless you changed it.
Ever since the latest upgrade to LR CC Classic (that name...shudder), the upright controls don't work so well, especially with my Fuji X-series files (XT2 and XPro2). They used to work fine, automatically straightening lines. The results are inconsistent and mostly incorrect most of the time now.
Why am I paying to beta-test your software, Adobe?