In the figure given below is block placed on an incline $\theta$. Now the lift is accelerating upwards with an acceleration $a_0$. Now if we make our measurements from the lift frame we will have to apply a pseudo force $-ma_0$. Which will have two components one in the direction of $Mg\cos\theta$. And other in the direction of $Mg\sin\theta$. Now $Mg\sin\theta+Ma_0\sin\theta=Ma_\text{net}$. Where $a_\text{net}$ is the net acceleration in that direction.
Now let's observe it from the ground or an inertial frame here the object has a net upward acceleration which has a component opposite to $Mg\sin\theta$. Therefore $Mg\sin\theta=- Ma_0\sin\theta$. Now what I thought was that this is not possible and hence there is another force acting opposite to $Mg\sin\theta$, $Ma_\text{net}$. Now this doesn't make any sense to me if there is a force acting opposite to $Mg\sin\theta$, and the net is also in that direction, then won't the object move upwards on the incline. Now that doesn't make any sense. Can someone tell me what Is happening and from where is this $a_\text{net}$ coming from when observing in the inertial frame?