Fresh install with Standard install profile, enable the media_library module
Install and enable ckeditor contrib module
Enable the embedded media filter for a text format and add the Media Library button to the CKEditor configuration.
Use layout builder to create a new custom "Basic block" with an embedded media, without making any changes to the media. The default alignment should be "center."
Edit the newly created inline block, edit the embedded media and change the alignment from "Center" to "Right" but do not change anything else. Save the block.