Editing HDR videos shot on iPhone 13 pro

Hi folks. I shoot a ton of videos with my iPhone 13 pro which I like to edit - trimming, cutting, joining multiple clips, etc. I have always used iMovie but recently I noticed that the exported videos are not HDR. There is also no option of selecting HDR while exporting from iMovie.

There is a marked difference in quality between the unedited iPhone videos and the ones exported through iMovie. I am looking for a way to edit the videos without losing HDR/quality. Any recommendations or suggestions will be greatly helpful. Thanks!

Original thread: https://forums.imore.com/threads/editing-hdr-videos-shot-on-iphone-13-pro.454726/