Make excel so that cell and column width formatting is stable when saved to onedrive.
Column width and formatting is the same in Excel Online as it is in other versions of Excel.
Kenneth Barber commented
Maybe the column width isn't stable relative to the font. If a workbook is uploaded and Excel Online doesn't support that font, then an alternative font will be used, and cell values will take up a different amount of horizontal space in the columns.