Hi, and welcome!
Without a reproducible example, called a reprex, it's hard to be specific, but this post may help.