Is there any record of where Mary and Joseph were when Jesus died and was resurrected?
This is a great question.
According to the main page of the Church of Jesus Christ of Latter-day Saints, we read:
We do know that Jesus had four brothers and probably three or more sisters. The people of Nazareth objected to the divine calling of Jesus on the grounds that he was someone who had grown up in their midst. “Is not this the carpenter’s son?” they asked in astonishment, “is not his mother called Mary? and his brethren, James, and Joses, and Simon, and Judas?
“And his sisters, are they not all with us?” (Matt. 13:55–56; italics added.) This is the only reference to the sisters of Jesus (other than in the parallel passage in Mark 6:1–6) in the New Testament and nothing more is known of their involvement with the Church or their attitude toward the Savior.
Though the record is also silent concerning the later life of Joseph, most scholars assume that he died sometime during the 18 years between the family’s visit to Jerusalem when Jesus was 12 (see Luke 2:41–50) and the beginning of Christ’s formal ministry. If Joseph had been alive, it seems likely that he would have been mentioned as being at the marriage celebration in Cana (see John 2:1–11) and almost certainly Jesus would not have given John the charge to care for his mother. (See John 19:25–27.)
Mary, his mother, we know was at the cross when Christ was hanging there. In a Church study manual it states:
Jesus looking with tender compassion upon His weeping mother, as she stood with John at the foot of the cross, commended her to the care and protection of the beloved disciple, with the words, “Woman, behold thy son!” and to John, “Behold thy mother!” The disciple tenderly led the heart-stricken Mary away from her dying Son, and “took her unto his own home,” thus immediately assuming the new relationship established by his dying Master.
Hope this helps.