This is probably a known feature, but I discovered it last week while on vacation: on the iPhone, you can go to Settings > Accessibility > Audio/Visual > Background Sounds, or add it to your Control Center using the icon that looks like an ear.