Hi, here’s some link to give you an idea on how to get started:
https://plotly.com/python/hover-text-and-formatting/
If you get stuck further, please provide a minimal example so people can help you better.
There are some examples on this site by searching for hovertemplate:
one such example: https://community.plotly.com/t/hovertemplate-with-customdata-or-hover-data-of-variable-shape/67901/2
also there are some guides to be found when you search on custom hovertemplate on google:
etc.