You can close apps on your Samsung Galaxy S10 by using the Recent Apps shortcut, or by going into your Settings app.
Closing iPhone apps generally isn't necessary, but can be useful if apps are misbehaving. Here's how to do it on any iPhone model.