A look around the guitar world shows a huge range of right hand styles, with the greatest range of approaches used by players of acoustic or electric instruments. A lot depends on their individual hand anatomy, the type of instrument and musical genre, the type of sound they want to achieve.
There are many variations to this position, you start from this and when you feel comfortable you can begin to make small changes. Experiment on yourself.
So, if you are a beginner you need a safe way to begin, I recommend using this position: anchor the palm of your hand on the bridge. Press down just hard enough so that your wrist can hardly move. Don't press too hard though! Now keep your fingers open and lean both your pinky and third finger on the guitar allowing the possibility of moving.
Watch the image below.
At this point the thing that you must try is to play with the pick perpendicular to the strings, with a flat angle, or with a slight inclination. This has a lot of influence on the sound of the acoustic guitars, less for the electric guitars. Let your ear decide what sound you like best.