There are different blessings that we make when we see certain natural phenomena or things in our world. One of those is when a person sees a king. When a person sees the king of Israel, he makes the Beracha (blessings) with Hashem's name, saying that Hashem gave from His glory to those who fear Him. Hashem bestows His honor upon those human beings who are going to represent Him and are fearful of Him, because it’s a Jewish king. That is a great honor, and a person blesses such a person whom he sees. If the person is not a good king, if he’s a wicked king like, unfortunately, we’ve had during the course of our history, then Hacham David says we would omit the Shem Hashem (Hashem’s name) and just say.
If a person sees a king of a foreign nation, there is also a Beracha that he says with Hashem’s name, that Hashem gave from His honor to other human beings. Now a big question arises: What does a person say, or should a person say a Beracha, if he sees a democratic president, a prime minister, or the president of the United States, who are elected democratically? They may not have the title of a king. They can’t put people to death if they so choose. They don’t have autocratic powers, but they get to make a lot of very important decisions. So this is actually a machloket (dispute) between Hacham Ovadia Yosef, zichrono livracha (may his memory be blessed), and it seems like his son Hacham David Yosef, who’s the current Rishon LeTzion.
Hacham Ovadia ruled that since a president does not have the ability to put anybody to death, he doesn’t have autocratic and dictatorial powers to do whatever he wants. So therefore, he’s limited in his power and he doesn’t have the status of a king. However, Hacham David ruled that if you see a prime minister or a president who’s with all his secret service agents, and he’s dressed differently and it’s very dignified, and he has the ability to pardon people and make very important executive decisions without anybody going against him, it might not be death power, but he might be able to make major decisions that change the course of the country. That constitutes a level of a melech (king), and the person would have to make the Beracha. This is only if he sees him in his dignitarial clothing and in a situation where people are respecting him. If the prime minister or president is going incognito at a basketball game, wearing shorts and a T-shirt, and he doesn’t look like the king, then the Beracha would not be recited.

