CSS Code Being Moved

Your software
My Mautic version is: 4.1.2
My PHP version is: 7.4.28
My Database type and version is: pdo_mysql - 5.7.32-35-log

Your problem
My problem is:
When we’re importing HTML code that has CSS within the top of the head tag, when clicking save it’s moving the CSS code to the bottom of the body which is causing certain mail clients to not style the email correct due to the code being forced to the bottom

These errors are showing in the log:
None

Steps I have tried to fix the problem: