Usually, it depends on OS settings.
By default, they are updated automatically, but this could be changed in the Settings of your device.
For IOS please visit: How to update apps manually on your Apple device – Apple Support (UK) .
For Android: How to update the Play Store & apps on Android - Google Play Help