Almost two year old son is biting

Y’all please no rude comments. But anyways y’all my son is literally the sweetest baby . But all off a sudden he’s biting pple and his self when he gets upset when I’m not letting him do things he wants to do just basically not having his way and will bite and hit me or the other person that’s in contact with him . And I don’t want pop my baby , I’ve tried the gentle parenting and telling him that’s not nice we do not bite or hit other pple when we’re mad but that’s not working . And I’ve have pop him once for biting me on my face and he just thought we were playing fighting and hit me back. Any thoughts or help what should I do