Refusing solids

Guys I need serious help. My 6/2 baby has been giving me a very hard time with solids since 2 - 3 months. I attributed it to teething initially but his teeth have come through already. I get so frustrated and Sometimes yell at him when he doesn’t open his mouth to let me feed him. I know I am absolutely wrong. But I cant help but get anxious that he isnt getting enough calories. He would eat purees n everything before. Now he refuses ti even open his mouth when i try to feed him his favorite foods. He shuts his mouth tight but will open it for berries and will feed himself berries. so i resort to giving in to him coz i worry he will lose weight. How do i help him eat more solids?