How to optimally prepare SVGs for WordPress?

When you “Export for Screens” from Illustrator, go to the Advanced Settings for SVG. Change Styling to “Inline Styling”, and Object IDs to “Unique”.