Jenkins 2.346.1 scriptApproval page is not showing nicely

I think you should evaluate your installed plugins to see if one or more of them has a known issue with the configuration form modernization that was implemented in Jenkins 2.277.1. Detailed steps are included in the article at: