Is it possible to consecrate a whole country? It is obviously difficult to do so, since not everyone in the population is Christian or practicing their faith. And we cannot act in someone else’s name.
A consecration is usually personal, and there is such a thing as group consecration, but since a consecration requires free will, strictly speaking, in the case of a country we must speak of “votive consecration”: this is not a formal consecration - which requires consent of the will - but a form of intercession for the country (1).
It is an excellent thing to consecrate one's country because, just as sin is personal and has social consequences, so the prayer of consecration is personal but has social consequences. Consecration to Jesus through the hands of Mary works miracles in the lives of Christians, but also in the lives of countries.
John Paul II set an example when he “entrusted” the whole of humanity to God:
“From one point of view, every sin is personal; from another point of view, every sin is social insofar as and because it also has social repercussions.[…] Into the hands of this mother, whose fiat marked the beginning of that "fullness of time" in which Christ accomplished the reconciliation of humanity with God, to her immaculate heart - to which we have repeatedly entrusted the whole of humanity, disturbed by sin and tormented by so many tensions and conflicts - I now in a special way entrust this intention: that through her intercession humanity may discover and travel the path of penance, the only path that can lead it to full reconciliation.” (2)
The Mary of Nazareth Team
(1) Cf. R. LAURENTIN, Retour à Dieu avec Marie, OEIL, Paris 1991, p. 79-88
(2) John Paul II, Apostolic Exhortation Reconciliatio et poenitentia § 15-16 and 35