I know that the rotation will only be visible after exporting but I am encountering another problem. For example, I have 3 files (1.png etc) if I rotate the 2.png file in LR and apply cropping on the 1.png file and pass the settings to the other files via auto-sync then the cropping in the rotated image is wrong (this is shown by the two colored bars on either side of the file from my link and in the video). If I rotate the file in the Windows Image Viewer before importing, then all the files are well cropped.
My apologies, I was getting confused trying to match your words here with the video.
You're tripping over a longstanding bug, where LR doesn't correctly copy crops and local adjustments between photos with different orientations:
https://community.adobe.com/t5/lightroom-classic-ideas/p-correct-copying-of-crops-and-local-adjustments/idi-p/12428734
At various times, Adobe has called this behavior "as designed" (not a bug):
https://community.adobe.com/t5/lightroom-classic-ideas/p-local-adjustments-and-crops-don-t-copy-or-work-in-presets-applied-to-rotated-photos/idi-p/12248672
and sometimes acknowledged it as a bug, though incorrectly marking the bug as fixed:
https://community.adobe.com/t5/lightroom-classic-bugs/p-copy-sync-crop-and-spot-removal-wrong-results-at-portrait-photos/idi-p/12419695/
After many years of no change in the status, I'm very doubtful the bug will ever be fixed.
There are two known workarounds:
1. Set the option Catalog Settings > Metadata > Automatically Write Changes Into XMP before copying/syncing crops. I've attached a screen recording demonstrating that with your sample pics.
2. Use the Copy Settings plugin.