"Long live the King!" refers to the heir who immediately succeeds to a throne upon the death of the preceding monarch. Meaning the monarchy never dies even when the King does.
Long Live: To live on forever even if a soul has moved on.
"The King is Dead! Long live the King!.. The throne shall never be empty; the country shall never be without a monarch."