Different results for different browsers

I have a reoccurring issue where the test/job results differ. E.g. the test pass in chrome but failed in firefox and edge.

It is worse when it is running as a job.

Is there a way to fix this issue?