It's a bit more than that. The authority of a British Prime Minister derives only from the House of Commons, and he has no powers other than those granted him by Parliament, which can be withdrawn at any time.
In recent decades there's been an increasing tendency for Prime Ministers to act as if they're Presidents, with executive powers independent of Parliament. Well, if you have a 170+ seat majority like Blair (who was the prime example) you can get away with that for a time. But as May and now Johnson have found, it's not so easy if you have a majority of zero.
Really? I thought this was correct.
But on reading your post I see I was wrong. Thank you
But Parliament does not want to enact such a law because it would then suffer the consequences, i.e., an election. Tough for them. They don't want to be accountable to their constituents. Such a conflict is so sad.