Maybe in the fanfic, there's a mystery that needs to be solved during the school break and Dumbledore believes that Snape and Harry together can figure it out. So he sends Harry to Snape. As they investigate, they face many challenges and through these shared experiences, their relationship evolves from one of animosity to a more positive one.
It could also be a really awkward experience. Snape is used to being strict and cold towards Harry at school. During the break, he might not know how to act around Harry without the school's formal structure. Harry might feel out of place too, but they could slowly build a strange sort of friendship or at least a mutual respect as they are forced to spend time together.
Well, in some fanfictions, Snape might start to see Harry in a different light. Maybe he begins to teach Harry some advanced potions techniques secretly during the summer. He could also grudgingly share some of his knowledge about the Dark Arts in a more controlled way, just to make sure Harry is well - equipped to face future threats.
Their relationship could develop from pure hatred to grudging respect. Harry may come to understand Snape's difficult position in the wizarding world and Snape might see Harry as more than just James Potter's son. For example, Snape could start to appreciate Harry's courage and determination during their time together in the summer.
One possible plot could be that they discover their relation early on. Harry, instead of being alone, has an older brother figure in Snape. Snape might then be more protective of Harry from the start and try to shield him from the dangers at Hogwarts in a more direct way.
One major challenge would be the public perception. Snape has a rather dark reputation in the wizarding world, and Harry is a hero. People might not understand or accept their relationship, let alone them having a family. Their family could face discrimination or be the subject of rumors.
Perhaps Harry discovers a way to travel to the Marvel universe and becomes enamored with the Avengers. He might then try to prove himself to them, showing off his magic skills and offering to help them in their battles.
Well, it could be that Snape has some false information that makes him think Harry is in immediate danger from the wrong people at Hogwarts. So, he kidnaps Harry to protect him. Maybe he takes Harry to a secret location like an old, abandoned wizarding house in the Forbidden Forest. There, he tries to figure out what to do next while Harry is really confused and angry at being kidnapped.
One possible plot could be that they discover they are brothers early on in Harry's time at Hogwarts. Snape then has to balance his duties as a teacher and his newfound family connection. He tries to protect Harry in secret from the threats within the school, like Malfoy and his cronies.
One possibility could be that Dumbledore arranges for Harry to live with Snape for protection. Snape, though reluctant at first, gradually discovers Harry's hidden strengths and they form an unlikely bond. Harry might learn more about his mother from Snape, which could lead to a deeper understanding between them.
Perhaps in the fanfic, there is some sort of magic that binds their fates together. Snape might discover this connection and, despite their past differences and his own reserved nature, he decides to propose to Harry as a way to accept this newfound bond. It could also involve Snape trying to make amends for his past actions towards Harry by offering this ultimate commitment.