Problem/Motivation
\Drupal\layout_builder\EventSubscriber\BlockComponentRenderArray adds
'#attributes' => ['class' => ['layout-builder-block']],
to all blocks rendered by Layout Builder, regardless of whether it is for the Layout Builder UI or for the end user.
Proposed resolution
Only add for the Layout Builder UI.
Consider adding it in a wrapping div instead of altering the block directly