Label text smaller than usual when a point is dynamically to 3D scatter graph

I’m using the react-plotly.js pacjage in Vite React. My app allows the user to added a new data point to be displayed in a 3D scatter graph. The data points need to have labels/text. The existing points that are already rendered when the app loads have decently sized labels. But if a point is dynamically added by a user, the label text is much smaller than normal. This behaviour isn’t desirable. Any pointers as to what may be causing this and how I can fix it?