MacBook pro A1398 early 2013 display flickering

It is not happening always, it's happening when I keep it long time in cupboard. Something related to temperature I think. Will display performance impact depends on temperature? Yesterday whole night laptop was outside and it was ON. Today I don't see this flickering anymore
 
Top